Skip to content

Commit 4ee664d

Browse files
authored
Merge pull request #39 from n-WN/copilot/fix-38
Fix JavaScript compatibility issue causing extension runtime failure
2 parents 4485198 + 952dc24 commit 4ee664d

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ out/
2424
**/tmp/
2525
**/dist/
2626

27+
# 临时测试文件
28+
test_*.js
29+
2730
# 排除不应被忽略的文件
2831
!.gitignore
2932
!.vscodeignore

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export function activate(context: vscode.ExtensionContext) {
6060
}
6161
// For win32, wrapped by `cmd /c`, because PowerShell 5.1 has no && operator
6262
if (process.platform === 'win32') {
63-
command = `cmd /c "${command.replaceAll('"', '""')}"`;
63+
command = `cmd /c "${command.replace(/"/g, '""')}"`;
6464
}
6565

6666
// 作为单一命令执行

0 commit comments

Comments
 (0)