Skip to content

Commit

Permalink
Documentation on hover for properties in properties files
Browse files Browse the repository at this point in the history
Bind the "microprofile/propertyDocumentation" command so that
documentation appears when hovering over property keys in properties files.

See eclipse/lsp4mp#329

Signed-off-by: David Thompson <[email protected]>
  • Loading branch information
datho7561 committed Dec 8, 2022
1 parent 7d6cac2 commit 61a5bdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/definitions/microProfileLSRequestNames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
// MicroProfile language server request and notifications
export const PROJECT_INFO_REQUEST = 'microprofile/projectInfo';
export const PROPERTY_DEFINITION_REQUEST = 'microprofile/propertyDefinition';
export const PROPERTY_DOCUMENTATION_REQUEST = 'microprofile/propertyDocumentation';
export const JSON_SCHEMA_FOR_PROJECT_INFO_REQUEST = 'microprofile/jsonSchemaForProjectInfo';
export const JAVA_CODEACTION_RESOLVE_REQUEST = 'microprofile/java/codeActionResolve';
export const JAVA_CODEACTION_REQUEST = 'microprofile/java/codeAction';
Expand Down
1 change: 1 addition & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ async function doActivate(context: ExtensionContext) {
*/
bindRequest(MicroProfileLS.PROJECT_INFO_REQUEST);
bindRequest(MicroProfileLS.PROPERTY_DEFINITION_REQUEST);
bindRequest(MicroProfileLS.PROPERTY_DOCUMENTATION_REQUEST);
bindRequest(MicroProfileLS.JAVA_CODEACTION_REQUEST);
bindRequest(MicroProfileLS.JAVA_CODEACTION_RESOLVE_REQUEST);
bindRequest(MicroProfileLS.JAVA_CODELENS_REQUEST);
Expand Down

0 comments on commit 61a5bdf

Please sign in to comment.