@@ -120,7 +120,7 @@ export class ClasspathRequestHandler implements vscode.Disposable {
120120 return true ;
121121 } ;
122122
123- private listProjects = instrumentOperation ( "classpath.listProjects" , async ( operationId : string ) => {
123+ private listProjects = instrumentOperation ( "projectSettings. classpath.listProjects" , async ( operationId : string ) => {
124124 // listProjects() will be called when the component is mounted,
125125 // we first check the requirement here in case user triggers 'reload webview'
126126 if ( ! ( await this . checkRequirement ( ) ) ) {
@@ -149,7 +149,7 @@ export class ClasspathRequestHandler implements vscode.Disposable {
149149 } ) ;
150150 } ) ;
151151
152- private listVmInstalls = instrumentOperation ( "classpath.listVmInstalls" , async ( operationId : string ) => {
152+ private listVmInstalls = instrumentOperation ( "projectSettings. classpath.listVmInstalls" , async ( operationId : string ) => {
153153 let vmInstalls : VmInstall [ ] = await this . getVmInstallsFromLS ( ) ;
154154 vmInstalls = vmInstalls . sort ( ( vmA : VmInstall , vmB : VmInstall ) => {
155155 return vmA . name . localeCompare ( vmB . name ) ;
@@ -169,7 +169,7 @@ export class ClasspathRequestHandler implements vscode.Disposable {
169169
170170 private debounceListVmInstalls = _ . debounce ( this . listVmInstalls , 3000 /*ms*/ ) ;
171171
172- private loadProjectClasspath = instrumentOperation ( "classpath.loadClasspath" , async ( operationId : string , currentProjectRoot : vscode . Uri ) => {
172+ private loadProjectClasspath = instrumentOperation ( "projectSettings. classpath.loadClasspath" , async ( operationId : string , currentProjectRoot : vscode . Uri ) => {
173173 const classpath = await this . getProjectClasspathFromLS ( currentProjectRoot ) ;
174174 if ( classpath ) {
175175 this . webview . postMessage ( {
@@ -215,7 +215,7 @@ export class ClasspathRequestHandler implements vscode.Disposable {
215215 return undefined ;
216216 }
217217
218- private addSourcePathForUnmanagedFolder = instrumentOperation ( "classpath.addSourcePathForUnmanagedFolder" , async ( _operationId : string , currentProjectRoot : vscode . Uri ) => {
218+ private addSourcePathForUnmanagedFolder = instrumentOperation ( "projectSettings. classpath.addSourcePathForUnmanagedFolder" , async ( _operationId : string , currentProjectRoot : vscode . Uri ) => {
219219 const relativePath : string | undefined = await this . selectSourceFolderPath ( currentProjectRoot ) ;
220220 if ( ! relativePath ) {
221221 return ;
@@ -232,15 +232,15 @@ export class ClasspathRequestHandler implements vscode.Disposable {
232232 } ) ;
233233 } ) ;
234234
235- private updateSourcePathsForUnmanagedFolder = instrumentOperation ( "classpath.updateSourcePathsForUnmanagedFolder" , async ( _operationId : string , currentProjectRoot : vscode . Uri , sourcePaths : string [ ] ) => {
235+ private updateSourcePathsForUnmanagedFolder = instrumentOperation ( "projectSettings. classpath.updateSourcePathsForUnmanagedFolder" , async ( _operationId : string , currentProjectRoot : vscode . Uri , sourcePaths : string [ ] ) => {
236236 vscode . workspace . getConfiguration ( "java" , currentProjectRoot ) . update (
237237 "project.sourcePaths" ,
238238 sourcePaths ,
239239 vscode . ConfigurationTarget . Workspace ,
240240 ) ;
241241 } ) ;
242242
243- private selectFolder = instrumentOperation ( "classpath.selectFolder" , async ( _operationId : string , currentProjectRoot : vscode . Uri , type : string ) => {
243+ private selectFolder = instrumentOperation ( "projectSettings. classpath.selectFolder" , async ( _operationId : string , currentProjectRoot : vscode . Uri , type : string ) => {
244244 const relativePath : string | undefined = await this . selectSourceFolderPath ( currentProjectRoot ) ;
245245 if ( ! relativePath ) {
246246 return ;
@@ -252,7 +252,7 @@ export class ClasspathRequestHandler implements vscode.Disposable {
252252 } ) ;
253253 } ) ;
254254
255- private updateClassPaths = instrumentOperation ( "classpath.updateClassPaths" , async ( _operationId : string , rootPath : string , projectType : ProjectType , sourcePaths : ClasspathEntry [ ] , defaultOutputPath : string , vmInstallPath : string , libraries : ClasspathEntry [ ] ) => {
255+ private updateClassPaths = instrumentOperation ( "projectSettings. classpath.updateClassPaths" , async ( _operationId : string , rootPath : string , projectType : ProjectType , sourcePaths : ClasspathEntry [ ] , defaultOutputPath : string , vmInstallPath : string , libraries : ClasspathEntry [ ] ) => {
256256 this . webview . postMessage ( {
257257 command : "classpath.onDidChangeLoadingState" ,
258258 loading : true ,
@@ -301,7 +301,7 @@ export class ClasspathRequestHandler implements vscode.Disposable {
301301 } ) ;
302302 } ) ;
303303
304- private selectOutputPath = instrumentOperation ( "classpath.selectOutputPath" , async ( _operationId : string , currentProjectRoot : vscode . Uri ) => {
304+ private selectOutputPath = instrumentOperation ( "projectSettings. classpath.selectOutputPath" , async ( _operationId : string , currentProjectRoot : vscode . Uri ) => {
305305 const outputFolder : vscode . Uri [ ] | undefined = await vscode . window . showOpenDialog ( {
306306 defaultUri : vscode . workspace . workspaceFolders ?. [ 0 ] . uri ,
307307 openLabel : "Select Output Folder" ,
@@ -332,7 +332,7 @@ export class ClasspathRequestHandler implements vscode.Disposable {
332332 }
333333 } ) ;
334334
335- private setOutputPath = instrumentOperation ( "classpath.setOutputPath" , async ( operationId : string , currentProjectRoot : vscode . Uri , outputRelativePath : string ) => {
335+ private setOutputPath = instrumentOperation ( "projectSettings. classpath.setOutputPath" , async ( operationId : string , currentProjectRoot : vscode . Uri , outputRelativePath : string ) => {
336336 if ( vscode . workspace . getConfiguration ( "java" , currentProjectRoot ) . get < string > ( "project.outputPath" ) === outputRelativePath ) {
337337 return ;
338338 }
@@ -357,7 +357,7 @@ export class ClasspathRequestHandler implements vscode.Disposable {
357357 ) ;
358358 } ) ;
359359
360- private addNewJdk = instrumentOperation ( "classpath.addNewJdk" , async ( operationId : string , currentProjectRoot : vscode . Uri ) => {
360+ private addNewJdk = instrumentOperation ( "projectSettings. classpath.addNewJdk" , async ( operationId : string , currentProjectRoot : vscode . Uri ) => {
361361 const actionResult : Record < string , string > = {
362362 name : "classpath.configuration" ,
363363 kind : "add-new-jdk"
@@ -404,7 +404,7 @@ export class ClasspathRequestHandler implements vscode.Disposable {
404404 }
405405 } ) ;
406406
407- private changeJdk = instrumentOperation ( "classpath.changeJdk" , async ( operationId : string , currentProjectRoot : vscode . Uri , jdkPath : string ) => {
407+ private changeJdk = instrumentOperation ( "projectSettings. classpath.changeJdk" , async ( operationId : string , currentProjectRoot : vscode . Uri , jdkPath : string ) => {
408408 const actionResult : Record < string , string > = {
409409 name : "classpath.configuration" ,
410410 kind : "use-existing-jdk"
@@ -439,7 +439,7 @@ export class ClasspathRequestHandler implements vscode.Disposable {
439439 }
440440 } ) ;
441441
442- private selectLibraries = instrumentOperation ( "classpath.selectLibraries" , async ( _operationId : string , currentProjectRoot : vscode . Uri ) => {
442+ private selectLibraries = instrumentOperation ( "projectSettings. classpath.selectLibraries" , async ( _operationId : string , currentProjectRoot : vscode . Uri ) => {
443443 const jarFiles : vscode . Uri [ ] | undefined = await vscode . window . showOpenDialog ( {
444444 defaultUri : vscode . workspace . workspaceFolders ?. [ 0 ] . uri ,
445445 openLabel : "Select Jar File" ,
@@ -469,13 +469,13 @@ export class ClasspathRequestHandler implements vscode.Disposable {
469469 }
470470 } ) ;
471471
472- private updateUnmanagedFolderLibraries = instrumentOperation ( "classpath.updateUnmanagedFolderLibraries" , async ( _operationId : string , jarFilePaths : string [ ] ) => {
472+ private updateUnmanagedFolderLibraries = instrumentOperation ( "projectSettings. classpath.updateUnmanagedFolderLibraries" , async ( _operationId : string , jarFilePaths : string [ ] ) => {
473473 const setting = this . getReferencedLibrariesSetting ( ) ;
474474 setting . include = jarFilePaths ;
475475 this . updateReferencedLibraries ( setting ) ;
476476 } ) ;
477477
478- private gotoProjectConfigurationFile = instrumentOperation ( "classpath.gotoProjectConfigurationFile" , ( operationId : string , rootUri : string , projectType : ProjectType ) => {
478+ private gotoProjectConfigurationFile = instrumentOperation ( "projectSettings. classpath.gotoProjectConfigurationFile" , ( operationId : string , rootUri : string , projectType : ProjectType ) => {
479479 const rootPath : string = vscode . Uri . parse ( rootUri ) . fsPath ;
480480 let configurationPath : string = "" ;
481481 if ( projectType === ProjectType . Gradle ) {
0 commit comments