Skip to content

Commit 01897f2

Browse files
committed
Add setting to support method implementation code lens
Signed-off-by: Hope Hadfield <[email protected]>
1 parent 2f57115 commit 01897f2

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ The following settings are supported:
124124
* `java.configuration.checkProjectSettingsExclusions`: **Deprecated, please use 'java.import.generatesMetadataFilesAtProjectRoot' to control whether to generate the project metadata files at the project root. And use 'files.exclude' to control whether to hide the project metadata files from the file explorer.** Controls whether to exclude extension-generated project settings files (`.project`, `.classpath`, `.factorypath`, `.settings/`) from the file explorer. Defaults to `false`.
125125
* `java.referencesCodeLens.enabled` : Enable/disable the references code lenses.
126126
* `java.implementationsCodeLens.enabled` : Enable/disable the implementations code lenses.
127+
* `java.methodImplementationsCodeLens.enabled` : Enable/disable the method implementations code lenses.
127128
* `java.signatureHelp.enabled` : Enable/disable signature help support (triggered on `(`).
128129
* `java.signatureHelp.description.enabled` : Enable/disable to show the description in signature help. Defaults to `false`.
129130
* `java.contentProvider.preferred` : Preferred content provider (see 3rd party decompilers available in [vscode-java-decompiler](https://github.com/dgileadi/vscode-java-decompiler)).

package.json

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,40 +1416,47 @@
14161416
"scope": "window",
14171417
"order": 20
14181418
},
1419+
"java.methodImplementationsCodeLens.enabled": {
1420+
"type": "boolean",
1421+
"default": false,
1422+
"description": "Enable/disable the method implementations code lens.",
1423+
"scope": "window",
1424+
"order": 30
1425+
},
14191426
"java.references.includeAccessors": {
14201427
"type": "boolean",
14211428
"default": true,
14221429
"description": "Include getter, setter and builder/constructor when finding references.",
14231430
"scope": "window",
1424-
"order": 30
1431+
"order": 40
14251432
},
14261433
"java.references.includeDeclarations": {
14271434
"type": "boolean",
14281435
"default": true,
14291436
"description": "Include declarations when finding references.",
14301437
"scope": "window",
1431-
"order": 40
1438+
"order": 50
14321439
},
14331440
"java.references.includeDecompiledSources": {
14341441
"type": "boolean",
14351442
"default": true,
14361443
"description": "Include the decompiled sources when finding references.",
14371444
"scope": "window",
1438-
"order": 50
1445+
"order": 60
14391446
},
14401447
"java.symbols.includeSourceMethodDeclarations": {
14411448
"type": "boolean",
14421449
"markdownDescription": "Include method declarations from source files in symbol search.",
14431450
"default": false,
14441451
"scope": "window",
1445-
"order": 60
1452+
"order": 70
14461453
},
14471454
"java.typeHierarchy.lazyLoad": {
14481455
"type": "boolean",
14491456
"default": false,
14501457
"description": "Enable/disable lazy loading the content in type hierarchy. Lazy loading could save a lot of loading time but every type should be expanded manually to load its content.",
14511458
"scope": "window",
1452-
"order": 70
1459+
"order": 80
14531460
},
14541461
"java.inlayHints.parameterNames.enabled": {
14551462
"type": "string",
@@ -1466,7 +1473,7 @@
14661473
"default": "literals",
14671474
"markdownDescription": "Enable/disable inlay hints for parameter names:\n```java\n\nInteger.valueOf(/* s: */ '123', /* radix: */ 10)\n \n```\n `#java.inlayHints.parameterNames.exclusions#` can be used to disable the inlay hints for methods.",
14681475
"scope": "window",
1469-
"order": 80
1476+
"order": 90
14701477
},
14711478
"java.inlayHints.parameterNames.exclusions": {
14721479
"type": "array",
@@ -1476,7 +1483,7 @@
14761483
"default": [],
14771484
"markdownDescription": "The patterns for the methods that will be disabled to show the inlay hints. Supported pattern examples:\n - `java.lang.Math.*` - All the methods from java.lang.Math.\n - `*.Arrays.asList` - Methods named as 'asList' in the types named as 'Arrays'.\n - `*.println(*)` - Methods named as 'println'.\n - `(from, to)` - Methods with two parameters named as 'from' and 'to'.\n - `(arg*)` - Methods with one parameter whose name starts with 'arg'.",
14781485
"scope": "window",
1479-
"order": 90
1486+
"order": 100
14801487
},
14811488
"java.search.scope": {
14821489
"type": "string",
@@ -1491,7 +1498,7 @@
14911498
"default": "all",
14921499
"markdownDescription": "Specifies the scope which must be used for search operation like \n - Find Reference\n - Call Hierarchy\n - Workspace Symbols",
14931500
"scope": "window",
1494-
"order": 100
1501+
"order": 110
14951502
}
14961503
}
14971504
},

0 commit comments

Comments
 (0)