Skip to content

Commit 1f5b391

Browse files
author
Dave Bartolomeo
committed
Dump dirty documents
1 parent b859bca commit 1f5b391

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

extensions/ql-vscode/test/vscode-tests/cli-integration/queries.test.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
import { CancellationToken, ExtensionContext, Range, Uri } from "vscode";
1+
import {
2+
CancellationToken,
3+
ExtensionContext,
4+
Range,
5+
Uri,
6+
workspace,
7+
} from "vscode";
28
import { join, dirname } from "path";
39
import {
410
pathExistsSync,
@@ -69,6 +75,12 @@ async function compileAndRunQuery(
6975
case "debug":
7076
console.log("Running query in debug mode");
7177
return await withDebugController(appCommands, async (controller) => {
78+
console.log("Dumping dirty documents");
79+
for (const doc of workspace.textDocuments) {
80+
console.log(
81+
`${doc.isDirty ? "dirty" : "clean"}: ${doc.uri.toString()}`,
82+
);
83+
}
7284
console.log("Starting debugging");
7385
await controller.startDebugging(
7486
{

0 commit comments

Comments
 (0)