Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for new jakarta LS/Client message - fileInfo #303

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

ajm01
Copy link
Contributor

@ajm01 ajm01 commented Oct 30, 2023

there is a new "jakarta/java/fileInfo" message supported between LS and LSClient to get the package name for the file that is currently having a snippet inserted into it. This was not functioning in the vscode env because the config for that new message was missing from the DelegateCommandHandler and the vscode client config as well. Added this support so that package name can be obtained from the jakarta JDT LS extn. There is a separate PR int he liberty-tools-vscode repo to pick up the tool config side of this.

This PR cannot be merged/built until eclipse-lsp4jakarta/lsp4jakarta#501 is reviewed/merged and a lsp4jakarta snapshot is respun.

@ajm01 ajm01 requested a review from TrevCraw October 30, 2023 14:31
src/definitions/lsp4jakartaLSRequestNames.ts Show resolved Hide resolved
src/extension.ts Outdated
@@ -76,6 +76,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
console.log("LSP4Jakarta is ready, binding requests...");

// Delegate requests from Jakarta LS to the Jakarta JDT core
bindRequest(lsp4jakartaLS.FILEINFO_REQUEST);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please fix spacing if possible

@ajm01 ajm01 force-pushed the pickup-new-jakarta-msg branch from 799655b to 6cec40f Compare October 31, 2023 14:02
@ajm01 ajm01 merged commit ac30eaf into OpenLiberty:main Oct 31, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants