Skip to content

Commit 7c37b52

Browse files
github-actions[bot]johnsoncodehk
authored andcommitted
ci(lint): auto-fix
1 parent 2ca3f0f commit 7c37b52

140 files changed

Lines changed: 4216 additions & 2494 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.vscode/launch.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
// A launch configuration that compiles the extension and then opens it inside a new window
2-
{
3-
"version": "0.2.0",
4-
"configurations": [
5-
{
6-
"name": "Launch Labs",
7-
"type": "extensionHost",
8-
"request": "launch",
9-
"runtimeExecutable": "${execPath}",
10-
"args": [
11-
"--extensionDevelopmentPath=${workspaceRoot}/extensions/labs"
12-
],
13-
"outFiles": [
14-
"${workspaceRoot}/extensions/labs/dist/**/*.js"
15-
],
16-
},
17-
],
18-
}
1+
// A launch configuration that compiles the extension and then opens it inside a new window
2+
{
3+
"version": "0.2.0",
4+
"configurations": [
5+
{
6+
"name": "Launch Labs",
7+
"type": "extensionHost",
8+
"request": "launch",
9+
"runtimeExecutable": "${execPath}",
10+
"args": [
11+
"--extensionDevelopmentPath=${workspaceRoot}/extensions/labs"
12+
],
13+
"outFiles": [
14+
"${workspaceRoot}/extensions/labs/dist/**/*.js"
15+
]
16+
}
17+
]
18+
}

.vscode/tasks.json

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
{
2-
"version": "2.0.0",
3-
"tasks": [
4-
{
5-
"type": "npm",
6-
"script": "compile",
7-
"group": "build",
8-
"presentation": {
9-
"panel": "dedicated",
10-
"reveal": "never"
11-
},
12-
"problemMatcher": [
13-
"$tsc"
14-
]
15-
},
16-
{
17-
"type": "npm",
18-
"script": "watch",
19-
"isBackground": true,
20-
"group": {
21-
"kind": "build",
22-
"isDefault": true
23-
},
24-
"presentation": {
25-
"panel": "dedicated",
26-
"reveal": "never"
27-
},
28-
"problemMatcher": [
29-
"$tsc-watch"
30-
]
31-
}
32-
]
33-
}
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "npm",
6+
"script": "compile",
7+
"group": "build",
8+
"presentation": {
9+
"panel": "dedicated",
10+
"reveal": "never"
11+
},
12+
"problemMatcher": [
13+
"$tsc"
14+
]
15+
},
16+
{
17+
"type": "npm",
18+
"script": "watch",
19+
"isBackground": true,
20+
"group": {
21+
"kind": "build",
22+
"isDefault": true
23+
},
24+
"presentation": {
25+
"panel": "dedicated",
26+
"reveal": "never"
27+
},
28+
"problemMatcher": [
29+
"$tsc-watch"
30+
]
31+
}
32+
]
33+
}

extensions/labs/scripts/build.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ require('esbuild').context({
2020
if (process.argv.includes('--watch')) {
2121
await ctx.watch();
2222
console.log('watching...');
23-
} else {
23+
}
24+
else {
2425
await ctx.rebuild();
2526
await ctx.dispose();
2627
console.log('finished.');

extensions/labs/src/common/shared.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@ import * as vscode from 'vscode';
33

44
export function useVolarExtensions(
55
context: vscode.ExtensionContext,
6-
addExtension: (extension: vscode.Extension<LabsInfo>) => void
6+
addExtension: (extension: vscode.Extension<LabsInfo>) => void,
77
) {
8-
98
const checked = new Set<string>();
109

1110
let updateTimeout: ReturnType<typeof setTimeout> | undefined;
1211

1312
context.subscriptions.push(
1413
vscode.extensions.onDidChange(update),
15-
vscode.window.onDidChangeActiveTextEditor(update)
14+
vscode.window.onDidChangeActiveTextEditor(update),
1615
);
1716

1817
update();

0 commit comments

Comments
 (0)