Skip to content

Commit 6555571

Browse files
jdneorgrunber
authored andcommitted
Revert "Remove 'java.completion.overwrite'"
This reverts commit 8c21e1c Signed-off-by: sheche <[email protected]>
1 parent a8a1e09 commit 6555571

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* enhancement - Show server status through the language status item. See [#2351](https://github.com/redhat-developer/vscode-java/issues/2351).
88
* enhancement - Add code action to extract lambda body to method. See [JLS#2027](https://github.com/eclipse/eclipse.jdt.ls/issues/2027).
99
* enhancement - Navigate to class declaration. See [#2132](https://github.com/redhat-developer/vscode-java/pull/2132).
10-
* enhancement - Support completion insert/replace capability. See [#2343](https://github.com/redhat-developer/vscode-java/pull/2343).
1110
* bug fix - Provide file & type comments for newly created compilation units. See [JLS#2047](https://github.com/eclipse/eclipse.jdt.ls/pull/2047).
1211
* bug fix - Code snippets should be usable even before LS done resolving dependencies. See [#684](https://github.com/redhat-developer/vscode-java/issues/684).
1312
* bug fix - Fix an occurrence of duplicate quick fixes at the line level See [#2339](https://github.com/redhat-developer/vscode-java/issues/2339).

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ The following settings are supported:
135135
* `java.autobuild.enabled` : Enable/disable the 'auto build'.
136136
* `java.maxConcurrentBuilds`: Set max simultaneous project builds.
137137
* `java.completion.enabled` : Enable/disable code completion support.
138+
* `java.completion.overwrite` : When set to true, code completion overwrites the current text. When set to false, code is simply added instead.
138139
* `java.completion.guessMethodArguments` : When set to true, method arguments are guessed when a method is selected from as list of code assist proposals.
139140
* `java.completion.filteredTypes`: Defines the type filters. All types whose fully qualified name matches the selected filter strings will be ignored in content assist or quick fix proposals and when organizing imports. For example 'java.awt.*' will hide all types from the awt packages.
140141
* `java.completion.favoriteStaticMembers` : Defines a list of static members or types with static members.
@@ -203,9 +204,6 @@ The following settings are supported:
203204
New in 1.5.0:
204205
* `java.inlayHints.parameterNames.enabled`: Enable/disable inlay hints for parameter names. Supported values are: `none`(Disable parameter name hints), `literals`(Enable parameter name hints only for literal arguments) and `all`(Enable parameter name hints for literal and non-literal arguments). Defaults to `literals`.
205206

206-
Removed in 1.5.0:
207-
* `java.completion.overwrite`: Please use `editor.suggest.insertMode` instead. Meanwhile, you can quickly switch to another mode by pressing `Shift` + `Tab` or `Shift` + `Enter` (the shortcut may be different depending on the local keymap settings).
208-
209207
Semantic Highlighting
210208
===============
211209
[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
@@ -477,6 +477,12 @@
477477
"description": "Enable/disable code completion support",
478478
"scope": "window"
479479
},
480+
"java.completion.overwrite": {
481+
"type": "boolean",
482+
"default": true,
483+
"description": "When set to true, code completion overwrites the current text. When set to false, code is simply added instead.",
484+
"scope": "window"
485+
},
480486
"java.completion.guessMethodArguments": {
481487
"type": "boolean",
482488
"default": false,

0 commit comments

Comments
 (0)