File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import { commands } from "vscode";
17
17
import { BuildSupport } from "../buildSupport/BuildSupport" ;
18
18
import { GradleBuildSupport } from "../buildSupport/GradleBuildSupport" ;
19
19
import { MavenBuildSupport } from "../buildSupport/MavenBuildSupport" ;
20
- import { PROJECT_LABELS_COMMAND_ID } from "./constants" ;
20
+ import { WORKSPACE_LABELS_COMMAND_ID } from "./constants" ;
21
21
22
22
export class ProjectLabelInfo {
23
23
uri : string ;
@@ -54,7 +54,7 @@ export class ProjectLabelInfo {
54
54
}
55
55
56
56
public static async getWorkspaceProjectLabelInfo ( ) : Promise < ProjectLabelInfo [ ] > {
57
- const projectLabels : { uri : string , labels : ProjectLabel [ ] } [ ] = await commands . executeCommand ( "java.execute.workspaceCommand" , PROJECT_LABELS_COMMAND_ID ) ;
57
+ const projectLabels : { uri : string , labels : ProjectLabel [ ] } [ ] = await commands . executeCommand ( "java.execute.workspaceCommand" , WORKSPACE_LABELS_COMMAND_ID ) ;
58
58
return projectLabels . map ( ( p ) => {
59
59
return new ProjectLabelInfo ( p . uri , p . labels ) ;
60
60
} ) ;
Original file line number Diff line number Diff line change @@ -33,14 +33,17 @@ export namespace MicroProfileLS {
33
33
export const PROJECT_INFO_REQUEST = 'microprofile/projectInfo' ;
34
34
export const PROPERTY_DEFINITION_REQUEST = 'microprofile/propertyDefinition' ;
35
35
export const JSON_SCHEMA_FOR_PROJECT_INFO_REQUEST = 'microprofile/jsonSchemaForProjectInfo' ;
36
- export const JAVA_CODELENS_REQUEST = 'microprofile/java/codeLens' ;
37
36
export const JAVA_CODEACTION_REQUEST = 'microprofile/java/codeAction' ;
37
+ export const JAVA_CODELENS_REQUEST = 'microprofile/java/codeLens' ;
38
+ export const JAVA_COMPLETION_REQUEST = 'microprofile/java/completion' ;
38
39
export const JAVA_DIAGNOSTICS_REQUEST = 'microprofile/java/diagnostics' ;
39
40
export const JAVA_HOVER_REQUEST = 'microprofile/java/hover' ;
41
+ export const JAVA_FILE_INFO_REQUEST = 'microprofile/java/fileInfo' ;
42
+ export const JAVA_PROJECT_LABELS_REQUEST = 'microprofile/java/projectLabels' ;
40
43
export const PROPERTIES_CHANGED_NOTIFICATION = 'microprofile/propertiesChanged' ;
41
44
}
42
45
43
- export const PROJECT_LABELS_COMMAND_ID = 'microprofile/java/projectLabels ' ;
46
+ export const WORKSPACE_LABELS_COMMAND_ID = 'microprofile/java/workspaceLabels ' ;
44
47
45
48
export const DEFAULT_API_URL : string = 'https://code.quarkus.io/api' ;
46
49
export const DEFAULT_BUILD_TOOL : BuildToolName = BuildToolName . Maven ;
Original file line number Diff line number Diff line change @@ -53,10 +53,13 @@ export function activate(context: ExtensionContext) {
53
53
*/
54
54
bindRequest ( MicroProfileLS . PROJECT_INFO_REQUEST ) ;
55
55
bindRequest ( MicroProfileLS . PROPERTY_DEFINITION_REQUEST ) ;
56
- bindRequest ( MicroProfileLS . JAVA_CODELENS_REQUEST ) ;
57
56
bindRequest ( MicroProfileLS . JAVA_CODEACTION_REQUEST ) ;
57
+ bindRequest ( MicroProfileLS . JAVA_CODELENS_REQUEST ) ;
58
+ bindRequest ( MicroProfileLS . JAVA_COMPLETION_REQUEST ) ;
58
59
bindRequest ( MicroProfileLS . JAVA_DIAGNOSTICS_REQUEST ) ;
59
60
bindRequest ( MicroProfileLS . JAVA_HOVER_REQUEST ) ;
61
+ bindRequest ( MicroProfileLS . JAVA_FILE_INFO_REQUEST ) ;
62
+ bindRequest ( MicroProfileLS . JAVA_PROJECT_LABELS_REQUEST ) ;
60
63
61
64
/**
62
65
* Delegate notifications from Java JDT LS to the MicroProfile LS
You can’t perform that action at this time.
0 commit comments