Skip to content

Commit 4e295ad

Browse files
format code
1 parent d9ef28b commit 4e295ad

File tree

6 files changed

+13
-23
lines changed

6 files changed

+13
-23
lines changed

.vscode/launch.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,8 @@
99
"name": "Run Extension",
1010
"type": "extensionHost",
1111
"request": "launch",
12-
"args": [
13-
"--extensionDevelopmentPath=${workspaceFolder}"
14-
],
15-
"outFiles": [
16-
"${workspaceFolder}/dist/**/*.js"
17-
],
12+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
13+
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
1814
"preLaunchTask": "${defaultBuildTask}"
1915
},
2016
{
@@ -39,8 +35,8 @@
3935
"description": "将反汇编风格设置为 Intel",
4036
"text": "-gdb-set disassembly-flavor intel",
4137
"ignoreFailures": true
42-
},
38+
}
4339
]
44-
},
40+
}
4541
]
46-
}
42+
}

.vscode/settings.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,5 @@
7777
"variant": "cpp",
7878
"text_encoding": "cpp"
7979
},
80-
"clangd.fallbackFlags": [
81-
"-std=c++14",
82-
"-I${workspaceFolder}/library"
83-
]
84-
}
80+
"clangd.fallbackFlags": ["-std=c++14", "-I${workspaceFolder}/library"]
81+
}

.vscode/tasks.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,11 @@
4141
"options": {
4242
"cwd": "${fileDirname}"
4343
},
44-
"problemMatcher": [
45-
"$gcc"
46-
],
44+
"problemMatcher": ["$gcc"],
4745
"group": {
4846
"kind": "build"
4947
},
5048
"detail": "调试器生成的任务。"
5149
}
5250
]
53-
}
51+
}

.vscodeignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ library/
1414
!library/LICENSE
1515
.github/
1616
**/*.gch
17+
tmp/

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ function writeIncludeToFile(
167167
const lines = content.split('\n');
168168
let start = lines.findIndex(x => x === extensionStartNoteStr),
169169
end = lines.findIndex(x => x === extensionEndNoteStr);
170-
if (start === -1 || end === -1) (start = 0), (end = -1);
170+
if (start === -1 || end === -1) ((start = 0), (end = -1));
171171
++end;
172172
return {
173173
start,

tsconfig.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
"module": "NodeNext",
44
"moduleResolution": "NodeNext",
55
"target": "ES2022",
6-
"lib": [
7-
"ES2022"
8-
],
6+
"lib": ["ES2022"],
97
"sourceMap": true,
108
"rootDir": "src",
119
"strict": true,
@@ -14,4 +12,4 @@
1412
"noImplicitAny": true,
1513
"resolveJsonModule": true
1614
}
17-
}
15+
}

0 commit comments

Comments
 (0)