Skip to content

Conversation

@testforstephen
Copy link
Collaborator

@testforstephen testforstephen commented Sep 9, 2020

Signed-off-by: Jinbo Wang jinbwan@microsoft.com

requires eclipse-jdtls/eclipse.jdt.ls#1540

close #1470

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
@fbricon
Copy link
Collaborator

fbricon commented Sep 9, 2020

Can you provide an example on how this would be used?

@fbricon
Copy link
Collaborator

fbricon commented Sep 9, 2020

Please update the readme.md as well

@testforstephen
Copy link
Collaborator Author

snippet1

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
@angelozerr
Copy link
Contributor

If none Java files are opened, the vscode-java extension is not started, the command _java.templateVariables is not available and when user clicks on predefined variables link, it doesn't work.

To fix this problem, add the command in the package.json:

"activationEvents": [
    ...
    "onCommand:_java.templateVariables"
  ],

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
@fbricon fbricon merged commit a7854a1 into redhat-developer:master Sep 15, 2020
@fbricon
Copy link
Collaborator

fbricon commented Sep 15, 2020

Thanks @testforstephen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow devs to override default snippets

3 participants