Skip to content

Commit 81b2407

Browse files
author
Dave Bartolomeo
committed
Log content of untitled docs
1 parent 1f5b391 commit 81b2407

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ async function compileAndRunQuery(
8080
console.log(
8181
`${doc.isDirty ? "dirty" : "clean"}: ${doc.uri.toString()}`,
8282
);
83+
if (doc.isUntitled) {
84+
console.log(`Content: ${doc.getText()}`);
85+
}
8386
}
8487
console.log("Starting debugging");
8588
await controller.startDebugging(

0 commit comments

Comments
 (0)