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

Escape special characters within LSP snippets #29

Merged
merged 1 commit into from
Aug 28, 2020
Merged

Escape special characters within LSP snippets #29

merged 1 commit into from
Aug 28, 2020

Conversation

xorye
Copy link

@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: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