File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 44import * as _ from "lodash" ;
55import * as path from "path" ;
66import * as vscode from "vscode" ;
7- import { instrumentOperationAsVsCodeCommand } from "vscode-extension-telemetry-wrapper" ;
7+ import { instrumentOperationAsVsCodeCommand , sendInfo } from "vscode-extension-telemetry-wrapper" ;
88
99import { JAVA_LANGID } from "./constants" ;
1010import { initializeHoverProvider } from "./hoverProvider" ;
@@ -214,11 +214,13 @@ async function addToClasspath(uri: vscode.Uri): Promise<boolean> {
214214 if ( parentPath === parentUri . fsPath ) {
215215 parentPath = path . basename ( parentFsPath ) ;
216216 }
217+ sendInfo ( "" , { operationName : "notOnClasspath" } ) ;
217218 const ans = await vscode . window . showWarningMessage ( `The file ${ fileName } isn't on the classpath, the runtime may throw class not found error. `
218219 + `Do you want to add the parent folder "${ parentPath } " to Java source path?` , "Add to Source Path" , "Skip" ) ;
219220 if ( ans === "Skip" ) {
220221 return true ;
221222 } else if ( ans === "Add to Source Path" ) {
223+ sendInfo ( "" , { operationName : "addToSourcePath" } ) ;
222224 vscode . commands . executeCommand ( "java.project.addToSourcePath.command" , parentUri ) ;
223225 }
224226
You can’t perform that action at this time.
0 commit comments