Skip to content

Commit 2779e6c

Browse files
committed
Enable lenses by default
1 parent 8a77ecc commit 2779e6c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@
596596
},
597597
"swift.showTestCodeLenses": {
598598
"type": "boolean",
599-
"default": false,
599+
"default": true,
600600
"markdownDescription": "Controls whether or not to show inline code lenses for running and debugging tests inline, above test and suite declarations.",
601601
"scope": "application"
602602
}

src/TestExplorer/TestCodeLensProvider.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,17 @@ export class TestCodeLensProvider implements vscode.CodeLensProvider, vscode.Dis
5454

5555
return [
5656
new vscode.CodeLens(item.range, {
57-
title: "$(play) Run",
57+
title: "$(play)\u00A0Run",
5858
command: "swift.runTest",
5959
arguments: [item],
6060
}),
6161
new vscode.CodeLens(item.range, {
62-
title: "$(debug) Debug",
62+
title: "$(debug)\u00A0Debug",
6363
command: "swift.debugTest",
6464
arguments: [item],
6565
}),
6666
new vscode.CodeLens(item.range, {
67-
title: "$(debug-coverage) Run w/ Coverage",
67+
title: "$(debug-coverage)\u00A0Run w/ Coverage",
6868
command: "swift.runTestWithCoverage",
6969
arguments: [item],
7070
}),

src/sourcekit-lsp/LanguageClientConfiguration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,10 @@ export function lspClientOptions(
179179
return result?.map(codelens => {
180180
switch (codelens.command?.command) {
181181
case "swift.run":
182-
codelens.command.title = `$(play) ${codelens.command.title}`;
182+
codelens.command.title = `$(play)\u00A0${codelens.command.title}`;
183183
break;
184184
case "swift.debug":
185-
codelens.command.title = `$(debug) ${codelens.command.title}`;
185+
codelens.command.title = `$(debug)\u00A0${codelens.command.title}`;
186186
break;
187187
}
188188
return codelens;

0 commit comments

Comments
 (0)