Skip to content

Commit b5a886d

Browse files
committed
fix write test cast
1 parent 297475a commit b5a886d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/commands/test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ export async function testSolutionDefault(uri?: vscode.Uri, allCase?: boolean):
122122

123123
function parseTestString(test: string): string {
124124
if (wsl.useWsl() || !isWindows()) {
125+
if (wsl.useVscodeNode()) {
126+
return `${test}`;
127+
}
125128
return `'${test}'`;
126129
}
127130

src/utils/cpUtils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ export async function executeCommand(command: string, args: string[], options: c
2121
newargs.push(args[arg_index])
2222
}
2323
var new_opt = { silent: true, ...options, env: createEnvOption() }
24+
if (false) {
25+
new_opt["execArgv"] = ['--inspect=43210']
26+
}
2427
childProc = cp.fork(command, newargs, new_opt);
2528
} else {
2629
childProc = cp.spawn(command, args, { ...options, env: createEnvOption() });

0 commit comments

Comments
 (0)