Skip to content

Commit cd41b83

Browse files
committed
feat: add inlay hints for implicit variables
Signed-off-by: Fred Bricon <fbricon@gmail.com>
1 parent f6a18d8 commit cd41b83

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,6 +1510,12 @@
15101510
"scope": "window",
15111511
"order": 90
15121512
},
1513+
"java.inlayHints.variableTypes.enabled": {
1514+
"type": "boolean",
1515+
"default": false,
1516+
"markdownDescription": "Enable/disable inlay hints for implicit variable types:\n```java\n\nvar foo /* :Path */ = Path.of(\"foo\");\n \n```",
1517+
"scope": "window"
1518+
},
15131519
"java.search.scope": {
15141520
"type": "string",
15151521
"enum": [

src/telemetry.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export namespace Telemetry {
6161
"java.completion.collapseCompletionItems", "java.completion.guessMethodArguments",
6262
"java.cleanup.actionsOnSave", "java.completion.postfix.enabled",
6363
"java.sharedIndexes.enabled", "java.inlayHints.parameterNames.enabled",
64+
"java.inlayHints.variableTypes.enabled",
6465
"java.server.launchMode", "java.autobuild.enabled"
6566
];
6667
// settings where we only record their existence

0 commit comments

Comments
 (0)