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

fix(java-plugin): Disable java semanticHighlighting by default #838

Closed
wants to merge 1 commit into from

Conversation

sunix
Copy link
Contributor

@sunix sunix commented Feb 12, 2021

What does this PR do?

Quick fix for syntax highlighting. Semantic highlighting is not properly enriching the default syntax highlighting. Disabling it for now.

Screenshot/screencast of this PR

What issues does this PR fix or reference?

eclipse-che/che#18448

How to test this PR?

TODO

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

@@ -27,4 +27,9 @@ if [ "${USER_ID}" -ne 0 ] && command -v sudo >/dev/null 2>&1 && sudo -n true > /
sudo chown "${USER_ID}:${GROUP_ID}" /projects
fi

echo 'Setting "java.semanticHighlighting.enabled" to false'
Copy link
Contributor

Choose a reason for hiding this comment

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

how does it work with multi-root workspaces ?
I think these kind of settings may be ignored
cc @RomanNikitenko

Copy link
Contributor Author

@sunix sunix Feb 12, 2021

Choose a reason for hiding this comment

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

How will multi-root workspaces deal with "workspace" settings? like the ones defined in the devfile?

Copy link
Contributor

Choose a reason for hiding this comment

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

eclipse-che/che#17975 (comment) and the follow-up comment. Answer: we need some new code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But same is applying for the settings you apply in the devfile like: https://github.com/eclipse/che-devfile-registry/blob/dcfdacf3954e30a25a8af3c7bd497b193d24f14a/devfiles/quarkus/devfile.yaml#L59-L62
So the strategy needs to be covered in the multi-root PR

Copy link
Member

Choose a reason for hiding this comment

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

I posted my thoughts about it here eclipse-che/che#17212 (comment)
Please share your opinion

@sunix
Copy link
Contributor Author

sunix commented Feb 12, 2021

What I can also do is disable editor.semanticHighlighting.enabled: false in che-theia there: https://github.com/eclipse/che-theia/blob/master/generator/src/templates/assembly-package.mst#L11-L15

edit: eclipse-che/che-theia#993.

@sunix
Copy link
Contributor Author

sunix commented Feb 13, 2021

won't merge in favor of eclipse-che/che-theia#993

@sunix sunix closed this Feb 13, 2021
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.

4 participants