Skip to content

Commit a4cff53

Browse files
author
Dave Bartolomeo
committed
Remove more debugging code
1 parent c18bb39 commit a4cff53

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

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

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
import {
2-
CancellationToken,
3-
ExtensionContext,
4-
Range,
5-
Uri,
6-
workspace,
7-
} from "vscode";
1+
import { CancellationToken, ExtensionContext, Range, Uri } from "vscode";
82
import { join, dirname } from "path";
93
import {
104
pathExistsSync,
@@ -73,18 +67,7 @@ async function compileAndRunQuery(
7367
);
7468

7569
case "debug":
76-
console.log("Running query in debug mode");
7770
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-
if (doc.isUntitled) {
84-
console.log(`Content: ${doc.getText()}`);
85-
}
86-
}
87-
8871
await controller.startDebugging(
8972
{
9073
query: queryUri.fsPath,
@@ -175,11 +158,8 @@ describeWithCodeQL()("Queries", () => {
175158
return;
176159
}
177160

178-
console.log(`Starting 'no extensions' ${mode}`);
179-
console.log("Setting useExtensionPacks to false");
180161
await cli.setUseExtensionPacks(false);
181162
const parsedResults = await runQueryWithExtensions();
182-
console.log("Returned from runQueryWithExtensions");
183163
expect(parsedResults).toEqual([1]);
184164
});
185165

0 commit comments

Comments
 (0)