We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3988749 commit 4fcd1d8Copy full SHA for 4fcd1d8
extension/src/goTest/run.ts
@@ -247,7 +247,9 @@ export class GoTestRunner {
247
// Save all documents that contain a test we're about to run, to ensure `go
248
// test` has the latest changes
249
const fileUris = new Set(Array.from(files).map((x) => x.uri));
250
- await Promise.all(this.workspace.textDocuments.filter((x) => fileUris.has(x.uri)).map((x) => x.save()));
+ await Promise.all(
251
+ this.workspace.textDocuments.filter((x) => fileUris.has(x.uri) && x.isDirty).map((x) => x.save())
252
+ );
253
254
let hasBench = false,
255
hasNonBench = false;
0 commit comments