Skip to content

Commit

Permalink
fix:prevents unnecessary mod path acquisition
Browse files Browse the repository at this point in the history
  • Loading branch information
luoliwoshang committed Apr 16, 2024
1 parent e3da992 commit 869e488
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/testUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,10 @@ export async function goTest(testconfig: TestConfig): Promise<boolean> {
testResultLines.forEach((line) => outputChannel.appendLine(line));
}
});
const modPath = (await getModFolderPath(vscode.Uri.file(testconfig.dir), true)) || testconfig.dir;
const modPath =
testconfig.isMod && testconfig.isGop
? (await getModFolderPath(vscode.Uri.file(testconfig.dir), true)) || testconfig.dir
: testconfig.dir;
// go test emits build errors on stderr, which contain paths relative to the cwd
errBuf.onLine((line) => {
outputChannel.appendLine(
Expand Down

0 comments on commit 869e488

Please sign in to comment.