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

Set minimum for threshold settings #1868

Merged

Conversation

jdneo
Copy link
Collaborator

@jdneo jdneo commented Apr 7, 2021

Signed-off-by: Sheng Chen <sheche@microsoft.com>
@jdneo
Copy link
Collaborator Author

jdneo commented Apr 7, 2021

Do we need to fallback the value to default (99) when it's non-positive at JDT.LS? Since some users may manually edit settings in settings.json

@@ -641,12 +641,15 @@
"type": "integer",
"description": "Specifies the number of imports added before a star-import declaration is used.",
"default": 99,
"scope": "window"
"scope": "window",
"minimum": 1
Copy link
Collaborator

Choose a reason for hiding this comment

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

https://github.com/eclipse/eclipse.jdt.ls/blob/b647c553ed817c1c70b278f1d3a7e047d27e54b8/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/preferences/Preferences.java#L1544-L1549

We have guarded the negative case in server side. If zero is not legal, i think we need update the condition check in server side as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@testforstephen testforstephen added this to the End March 2021 milestone Apr 8, 2021
@testforstephen testforstephen merged commit f99880c into redhat-developer:master Apr 8, 2021
@jdneo jdneo deleted the cs/vscode-java-pack/issues/590 branch April 8, 2021 04:34
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.

java: setting starThreshold=0 breaks java intellisense
3 participants