-
Notifications
You must be signed in to change notification settings - Fork 5
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
Autocomplete doesn't fully override #46
Comments
@rgrunber is there anything special done for templates e.g. sysout in vscode-java ? What is https://github.com/redhat-developer/vscode-java/blob/master/snippets/server.json#L2 for ? |
I would guess that things like https://github.com/redhat-developer/vscode-java/blob/master/snippets/server.json are used at https://github.com/redhat-developer/vscode-java/blob/d0f4f5bbb80b44ebbc4407f23e4a976bc7477a05/src/snippetCompletionProvider.ts#L12 as a temporary measure until the LS is up, since the same snippets are available at https://github.com/eclipse/eclipse.jdt.ls/blob/master/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/corext/template/java/CodeSnippetTemplate.java . See https://github.com/redhat-developer/vscode-java/blob/d0f4f5bbb80b44ebbc4407f23e4a976bc7477a05/src/standardLanguageClient.ts#L147-L148 . It might be a bit overkill, but there's some instances where the language server is not yet at |
#63 adds a test to cover that case. |
#63 is merged and validates upstream fix in the LS works. |
Let's make sure issue is not already fixed in snapshots first.
Steps to reproduce
From a fresh installation and clean workspace:
Screencast from 2023-04-04 18-08-57.webm shows using sysout template and how a leading 's' symbol stays making the code illegal.
Tested under this environment:
Community
The text was updated successfully, but these errors were encountered: