-
Notifications
You must be signed in to change notification settings - Fork 456
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
Optionally disable loading gradle from gradle wrapper #917
Conversation
package.json
Outdated
@@ -114,16 +114,22 @@ | |||
"description": "Traces the communication between VS Code and the Java language server.", | |||
"scope": "window" | |||
}, | |||
"java.import.gradle.enabled": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to keep java.import.gradle.enabled
package.json
Outdated
"scope": "window" | ||
}, | ||
"java.import.maven.enabled": { | ||
"java.gradle.wrapper.enabled": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
java.import.gradle.wrapper.enabled
package.json
Outdated
"description": "Enable/disable the Gradle wrapper.", | ||
"scope": "window" | ||
}, | ||
"java.gradle.version": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
java.import.gradle.version
I think it makes more sense to check
|
@fbricon I have updated the PR. |
package.json
Outdated
"java.import.gradle.version": { | ||
"type": "string", | ||
"default": null, | ||
"description": "Gradle version.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gradle version, used if the gradle wrapper is missing or disabled.
README.md
Outdated
@@ -109,6 +109,10 @@ The following settings are supported: | |||
* `java.codeGeneration.toString.listArrayContents`: List contents of arrays instead of using native toString(). Defaults to `true`. | |||
* `java.codeGeneration.toString.limitElements`: Limit number of items in arrays/collections/maps to list, if 0 then list all. Defaults to `0`. | |||
|
|||
*New in 0.45.0:* | |||
* `java.import.gradle.wrapper.enabled`: Enable/disable the Gradle wrapper. | |||
* `java.import.gradle.version`: Gradle version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gradle version, used if the gradle wrapper is missing or disabled.
Signed-off-by: Snjezana Peco <[email protected]>
@fbricon I have updated the PR. |
Fixes #875
Requires eclipse-jdtls/eclipse.jdt.ls#1026
I have added two new properties:
java.import.gradle.wrapper.enabled
andjava.import.gradle.version
Importing a gradle project works in the following way:
Signed-off-by: Snjezana Peco [email protected]