Skip to content

Commit d004bda

Browse files
hopehadfieldrgrunber
authored andcommitted
Add setting to collapse completion items for overloaded methods.
Signed-off-by: Hope Hadfield <[email protected]>
1 parent 0919d62 commit d004bda

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ The following settings are supported:
243243
* `java.edit.smartSemicolonDetection.enabled`: Defines the `smart semicolon` detection. Defaults to `false`.
244244
* `java.configuration.detectJdksAtStart`: Automatically detect JDKs installed on local machine at startup. If you have specified the same JDK version in `java.configuration.runtimes`, the extension will use that version first. Defaults to `true`.
245245

246+
New in 1.29.0
247+
* `java.completion.collapseCompletionItems`: Enable/disable the collapse of overloaded methods in completion items. Overrides `java.completion.guessMethodArguments`.
246248

247249
Semantic Highlighting
248250
===============

USAGE_DATA.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ vscode-java has opt-in telemetry collection, provided by [vscode-redhat-telemetr
1818
* The number of unresolved imports within the project(s)
1919
* Whether there is a mismatch between the project's requested source level, and the JDK used for the project (eg. true)
2020
* Information about the following settings. In the case of settings that store a well defined value (eg. path/url/string), we simply collect whether the setting has been set.
21-
* `java.settings.url`, `java.format.settings.url`, `java.quickfix.showAt`, `java.symbols.includeSourceMethodDeclarations`, `java.completion.guessMethodArguments`, `java.completion.postfix.enabled`, `java.cleanup.actionsOnSave`, `java.sharedIndexes.enabled`, `java.inlayHints.parameterNames.enabled`, `java.server.launchMode`, `java.autobuild.enabled`
21+
* `java.settings.url`, `java.format.settings.url`, `java.quickfix.showAt`, `java.symbols.includeSourceMethodDeclarations`, `java.completion.collapseCompletionItems`, `java.completion.guessMethodArguments`, `java.completion.postfix.enabled`, `java.cleanup.actionsOnSave`, `java.sharedIndexes.enabled`, `java.inlayHints.parameterNames.enabled`, `java.server.launchMode`, `java.autobuild.enabled`
2222
* The extension name and the choice made when a recommendation to install a 3rd party extension is proposed
2323
* The name of Java commands being manually executed, and any resulting errors
2424
* The number of results (eg. 20), whether an error occured (eg. false), and duration (in milliseconds) when code assist is activated

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,12 @@
10961096
"default": false,
10971097
"description": "Enable/disable to show the description in signature help.",
10981098
"scope": "window"
1099+
},
1100+
"java.completion.collapseCompletionItems": {
1101+
"type": "boolean",
1102+
"default": false,
1103+
"markdownDescription": "Enable/disable the collapse of overloaded methods in completion items. Overrides `#java.completion.guessMethodArguments#`.",
1104+
"scope": "window"
10991105
}
11001106
}
11011107
},

src/telemetry.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ export namespace Telemetry {
6666
// settings whose values we can record
6767
const SETTINGS_BASIC = [
6868
"java.quickfix.showAt", "java.symbols.includeSourceMethodDeclarations",
69-
"java.completion.guessMethodArguments", "java.cleanup.actionsOnSave",
70-
"java.completion.postfix.enabled", "java.sharedIndexes.enabled",
71-
"java.inlayHints.parameterNames.enabled", "java.server.launchMode",
72-
"java.autobuild.enabled"
69+
"java.completion.collapseCompletionItems", "java.completion.guessMethodArguments",
70+
"java.cleanup.actionsOnSave", "java.completion.postfix.enabled",
71+
"java.sharedIndexes.enabled", "java.inlayHints.parameterNames.enabled",
72+
"java.server.launchMode", "java.autobuild.enabled"
7373
];
7474
// settings where we only record their existence
7575
const SETTINGS_CUSTOM = [

0 commit comments

Comments
 (0)