@@ -14,7 +14,6 @@ export async function explainDocument(httpHandler: AxiosInstance) {
1414 return new Promise ( async ( resolve , reject ) => {
1515 if ( vscode . window . activeTextEditor ?. selection ) {
1616 const highlight = vscode . window . activeTextEditor . document . getText ( ) ;
17- console . log ( highlight ) ;
1817 const insert = new vscode . Position ( 0 , 0 ) ;
1918
2019 try {
@@ -24,9 +23,7 @@ export async function explainDocument(httpHandler: AxiosInstance) {
2423 } ,
2524 template : 'codeExplain'
2625 } ) ;
27- console . log ( { explainRes} ) ;
2826 const output = explainRes . data . data ;
29- console . log ( { output} ) ;
3027 const explanationWithComment = commentify ( "Here's what the selected code is doing:\n1." + output [ 0 ] , vscode . window . activeTextEditor . document . fileName ) ;
3128 vscode . window . activeTextEditor . insertSnippet ( new vscode . SnippetString ( `${ explanationWithComment } \n` ) , insert ) ;
3229 resolve ( 'Added explanation' ) ;
@@ -56,7 +53,6 @@ export async function explainCode(httpHandler: AxiosInstance) {
5653 return new Promise ( async ( resolve , reject ) => {
5754 if ( vscode . window . activeTextEditor ?. selection ) {
5855 const highlight = getSelectedText ( vscode . window . activeTextEditor ) ;
59- console . log ( highlight ) ;
6056 const insert = getInsert ( vscode . window . activeTextEditor ) ;
6157
6258 try {
@@ -66,9 +62,7 @@ export async function explainCode(httpHandler: AxiosInstance) {
6662 } ,
6763 template : 'codeExplain'
6864 } ) ;
69- console . log ( { explainRes} ) ;
7065 const output = explainRes . data . data ;
71- console . log ( { output} ) ;
7266 const explanationWithComment = commentify ( "Here's what the selected code is doing:\n1." + output [ 0 ] , vscode . window . activeTextEditor . document . fileName ) ;
7367 vscode . window . activeTextEditor . insertSnippet ( new vscode . SnippetString ( `${ explanationWithComment } \n` ) , insert ) ;
7468 resolve ( 'Added explanation' ) ;
0 commit comments