Skip to content

Commit ff45772

Browse files
committed
Expose "java.eclipse.downloadSources" option.
- Related #1664 - "java.eclipse.downloadSources" controls whether to download sources of a maven artifact detected within an Eclipse project - Correct description for "java.maven.downloadSources" since it only controls source downloading on project import but not for on-demand cases (eg. hover, go-to definition) Signed-off-by: Roland Grunberg <[email protected]>
1 parent 1139f07 commit ff45772

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ The following settings are supported:
142142
* `java.format.comments.enabled` : Includes the comments during code formatting.
143143
* `java.format.onType.enabled` : Enable/disable on-type formatting (triggered on `;`, `}` or `<return>`).
144144
* `java.foldingRange.enabled`: Enable/disable smart folding range support. If disabled, it will use the default indentation-based folding range provided by VS Code.
145-
* `java.maven.downloadSources`: Enable/disable eager download of Maven source artifacts.
145+
* `java.maven.downloadSources`: Enable/disable download of Maven source artifacts as part of importing Maven projects.
146146
* `java.maven.updateSnapshots`: Force update of Snapshots/Releases. Defaults to `false`.
147147
* `java.codeGeneration.hashCodeEquals.useInstanceof`: Use 'instanceof' to compare types when generating the hashCode and equals methods. Defaults to `false`.
148148
* `java.codeGeneration.hashCodeEquals.useJava7Objects`: Use Objects.hash and Objects.equals when generating the hashCode and equals methods. This setting only applies to Java 7 and higher. Defaults to `false`.
@@ -180,10 +180,12 @@ The following settings are supported:
180180
* `java.templates.fileHeader`: Specifies the file header comment for new Java file. Supports configuring multi-line comments with an array of strings, and using ${variable} to reference the [predefined variables](https://github.com/redhat-developer/vscode-java/wiki/Predefined-Variables-for-Java-Template-Snippets).
181181
* `java.templates.typeComment`: Specifies the type comment for new Java type. Supports configuring multi-line comments with an array of strings, and using ${variable} to reference the [predefined variables](https://github.com/redhat-developer/vscode-java/wiki/Predefined-Variables-for-Java-Template-Snippets).
182182
* `java.references.includeAccessors`: Include getter, setter and builder/constructor when finding references. Default to true.
183-
184-
New in 0.70.0:
185183
* `java.configuration.maven.globalSettings` : Path to Maven's global settings.xml.
186184

185+
New in 0.74.0:
186+
* `java.eclipse.downloadSources` : Enable/disable download of Maven source artifacts for Eclipse projects.
187+
188+
187189
Semantic Highlighting
188190
===============
189191
[Semantic Highlighting](https://github.com/redhat-developer/vscode-java/wiki/Semantic-Highlighting) is controlled by the `java.semanticHighlighting.enabled` preference. When enabled, it fixes numerous syntax highlighting issues with the default Java Textmate grammar. However, you might experience different small issues, particularly a delay when it kicks in, as it needs to be computed by the Java Language server, when opening a new file or when typing.

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,13 @@
227227
"java.maven.downloadSources": {
228228
"type": "boolean",
229229
"default": false,
230-
"description": "Enable/disable eager download of Maven source artifacts.",
230+
"description": "Enable/disable download of Maven source artifacts as part of importing Maven projects.",
231+
"scope": "window"
232+
},
233+
"java.eclipse.downloadSources": {
234+
"type": "boolean",
235+
"default": false,
236+
"description": "Enable/disable download of Maven source artifacts for Eclipse projects.",
231237
"scope": "window"
232238
},
233239
"java.maven.updateSnapshots": {

0 commit comments

Comments
 (0)