Skip to content

Commit b74b0aa

Browse files
author
Ravi Chande
committed
Rename CodeLens options to match JS/TS option names
1 parent 0ee4662 commit b74b0aa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,12 +323,12 @@
323323
"default": true,
324324
"description": "Suppress 'hidden' diagnostics (such as 'unnecessary using directives') from appearing in the editor or the Problems pane."
325325
},
326-
"csharp.showReferencesCodeLens": {
326+
"csharp.referencesCodeLens.enabled": {
327327
"type": "boolean",
328328
"default": true,
329329
"description": "Specifies whether the references CodeLens should be show be shown."
330330
},
331-
"csharp.showTestsCodeLens": {
331+
"csharp.testsCodeLens.enabled": {
332332
"type": "boolean",
333333
"default": true,
334334
"description": "Specifies whether the run and debug test CodeLens should be show be shown."

src/omnisharp/options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ export class Options {
5454

5555
const useFormatting = csharpConfig.get<boolean>('format.enable', true);
5656

57-
const showReferencesCodeLens = csharpConfig.get<boolean>('showReferencesCodeLens', true);
58-
const showTestsCodeLens = csharpConfig.get<boolean>('showTestsCodeLens', true);
57+
const showReferencesCodeLens = csharpConfig.get<boolean>('referencesCodeLens.enabled', true);
58+
const showTestsCodeLens = csharpConfig.get<boolean>('testsCodeLens.enabled', true);
5959

6060
const disableCodeActions = csharpConfig.get<boolean>('disableCodeActions', false);
6161

0 commit comments

Comments
 (0)