Skip to content

Escape special characters within LSP snippets#29

Merged
fbricon merged 1 commit intoeclipse-lsp4mp:masterfrom
xorye:351escape_snippet
Aug 28, 2020
Merged

Escape special characters within LSP snippets#29
fbricon merged 1 commit intoeclipse-lsp4mp:masterfrom
xorye:351escape_snippet

Conversation

@xorye
Copy link
Copy Markdown

@xorye xorye commented Jul 27, 2020

Fixes redhat-developer/quarkus-ls#351

The issue was happening because the $ and } characters were not being escaped. This PR escapes special snippet characters for properties' default values.

To test that this PR is working properly, try completion with the quarkus.container-image.group property as explained in the original issue, or try completion with a config property containing ${ and }:

    @ConfigProperty(name = "greeting.message", defaultValue = "price: ${item.price}") 
    String message;

After properties completion, the default value should be completely highlighted:
conatiner-image

Signed-off-by: David Kwon dakwon@redhat.com

Signed-off-by: David Kwon <dakwon@redhat.com>
@fbricon fbricon merged commit dc3db25 into eclipse-lsp4mp:master Aug 28, 2020
@angelozerr angelozerr added this to the 0.1.0 milestone Sep 11, 2020
@angelozerr angelozerr added the bug Something isn't working label Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quarkus container-image incorrect default value highlighting

6 participants