Skip to content

Commit 9436a49

Browse files
authored
Remove helper command for working on the Remote Query results view (#1214)
1 parent 0e02cb0 commit 9436a49

3 files changed

Lines changed: 0 additions & 457 deletions

File tree

extensions/ql-vscode/package.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,6 @@
300300
"command": "codeQL.runRemoteQuery",
301301
"title": "CodeQL: Run Remote Query"
302302
},
303-
{
304-
"command": "codeQL.showFakeRemoteQueryResults",
305-
"title": "CodeQL: [Internal] Show fake remote query results"
306-
},
307303
{
308304
"command": "codeQL.runQueries",
309305
"title": "CodeQL: Run Queries in Selected Files"
@@ -805,10 +801,6 @@
805801
"command": "codeQL.runRemoteQuery",
806802
"when": "config.codeQL.canary && editorLangId == ql && resourceExtname == .ql"
807803
},
808-
{
809-
"command": "codeQL.showFakeRemoteQueryResults",
810-
"when": "config.codeQL.canary"
811-
},
812804
{
813805
"command": "codeQL.runQueries",
814806
"when": "false"

extensions/ql-vscode/src/extension.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,7 @@ import { Credentials } from './authentication';
9393
import { RemoteQueriesManager } from './remote-queries/remote-queries-manager';
9494
import { RemoteQueryResult } from './remote-queries/remote-query-result';
9595
import { URLSearchParams } from 'url';
96-
import { RemoteQueriesInterfaceManager } from './remote-queries/remote-queries-interface';
97-
import * as sampleData from './remote-queries/sample-data';
9896
import { handleDownloadPacks, handleInstallPackDependencies } from './packaging';
99-
import { AnalysesResultsManager } from './remote-queries/analyses-results-manager';
10097
import { RemoteQueryHistoryItem } from './remote-queries/remote-query-history-item';
10198

10299
/**
@@ -888,17 +885,6 @@ async function activateWithInstalledDistribution(
888885
await rqm.autoDownloadRemoteQueryResults(queryResult, token);
889886
}));
890887

891-
ctx.subscriptions.push(
892-
commandRunner('codeQL.showFakeRemoteQueryResults', async () => {
893-
const analysisResultsManager = new AnalysesResultsManager(ctx, cliServer, queryStorageDir, logger);
894-
const rqim = new RemoteQueriesInterfaceManager(ctx, logger, analysisResultsManager);
895-
await rqim.showResults(sampleData.sampleRemoteQuery, sampleData.sampleRemoteQueryResult);
896-
897-
await rqim.setAnalysisResults(sampleData.sampleAnalysesResultsStage1);
898-
await rqim.setAnalysisResults(sampleData.sampleAnalysesResultsStage2);
899-
await rqim.setAnalysisResults(sampleData.sampleAnalysesResultsStage3);
900-
}));
901-
902888
ctx.subscriptions.push(
903889
commandRunner(
904890
'codeQL.openReferencedFile',

0 commit comments

Comments
 (0)