Skip to content

Commit f8c989b

Browse files
authored
Add a setting to control whether 'textEdit' of completion items can be resolved (#3072)
* Add a setting to control whether 'textEdit' of completion item can be lazy-resolved Signed-off-by: Sheng Chen <[email protected]>
1 parent fdaacd8 commit f8c989b

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,17 @@ The following settings are supported:
218218
- auto
219219
- on
220220
- off
221-
* `java.sharedIndexes.location`: Specifies a common index location for all workspaces. See default values as follows:
221+
* `java.sharedIndexes.location`: Specifies a common index location for all workspaces. See default values as follows:
222222
- Windows: First use `"$APPDATA\\.jdt\\index"`, or `"~\\.jdt\\index"` if it does not exist
223223
- macOS: `"~/Library/Caches/.jdt/index"`
224224
- Linux: First use `"$XDG_CACHE_HOME/.jdt/index"`, or `"~/.cache/.jdt/index"` if it does not exist
225225
* `java.refactoring.extract.interface.replace`: Specify whether to replace all the occurrences of the subtype with the new extracted interface. Defaults to `true`.
226226
* `java.import.maven.disableTestClasspathFlag` : Enable/disable test classpath segregation. When enabled, this permits the usage of test resources within a Maven project as dependencies within the compile scope of other projects. Defaults to `false`.
227227
* `java.configuration.maven.defaultMojoExecutionAction` : Specifies default mojo execution action when no associated metadata can be detected. Defaults to `ignore`.
228228

229+
New in 1.18.0
230+
* `java.completion.lazyResolveTextEdit.enabled`: [Experimental] Enable/disable lazily resolving text edits for code completion. Defaults to `true`.
231+
229232
Semantic Highlighting
230233
===============
231234
[Semantic Highlighting](https://github.com/redhat-developer/vscode-java/wiki/Semantic-Highlighting) fixes numerous syntax highlighting issues with the default Java Textmate grammar. However, you might experience a few minor 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. Semantic highlighting can be disabled for all languages using the `editor.semanticHighlighting.enabled` setting, or for Java only using [language-specific editor settings](https://code.visualstudio.com/docs/getstarted/settings#_languagespecific-editor-settings).

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,12 @@
617617
"markdownDescription": "Specify whether to match case for code completion.",
618618
"scope": "window"
619619
},
620+
"java.completion.lazyResolveTextEdit.enabled": {
621+
"type": "boolean",
622+
"default": true,
623+
"description": "[Experimental] Enable/disable lazily resolving text edits for code completion.",
624+
"scope": "window"
625+
},
620626
"java.foldingRange.enabled": {
621627
"type": "boolean",
622628
"default": true,

0 commit comments

Comments
 (0)