Skip to content

Commit dcdb303

Browse files
committed
Remove codeQL.monitorRemoteQuery command
1 parent 096e8f6 commit dcdb303

File tree

5 files changed

+26
-759
lines changed

5 files changed

+26
-759
lines changed

extensions/ql-vscode/src/extension.ts

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,28 @@ import {
44
CancellationTokenSource,
55
commands,
66
Disposable,
7+
env,
78
ExtensionContext,
89
extensions,
910
languages,
1011
ProgressLocation,
1112
ProgressOptions,
13+
ProviderResult,
14+
QuickPickItem,
15+
Range,
1216
Uri,
17+
version as vscodeVersion,
1318
window as Window,
14-
env,
1519
window,
16-
QuickPickItem,
17-
Range,
1820
workspace,
19-
ProviderResult,
20-
version as vscodeVersion,
2121
} from "vscode";
2222
import { LanguageClient } from "vscode-languageclient/node";
23-
import { platform, arch } from "os";
23+
import { arch, platform } from "os";
2424
import { ensureDir } from "fs-extra";
25-
import { join, basename } from "path";
25+
import { basename, join } from "path";
2626
import { dirSync } from "tmp-promise";
2727
import { testExplorerExtensionId, TestHub } from "vscode-test-adapter-api";
28-
import { parse, lt } from "semver";
28+
import { lt, parse } from "semver";
2929

3030
import { AstViewer } from "./astViewer";
3131
import {
@@ -47,10 +47,10 @@ import { install } from "./languageSupport";
4747
import { DatabaseItem, DatabaseManager } from "./databases";
4848
import { DatabaseUI } from "./databases-ui";
4949
import {
50-
TemplateQueryDefinitionProvider,
51-
TemplateQueryReferenceProvider,
5250
TemplatePrintAstProvider,
5351
TemplatePrintCfgProvider,
52+
TemplateQueryDefinitionProvider,
53+
TemplateQueryReferenceProvider,
5454
} from "./contextual/templateProvider";
5555
import {
5656
DEFAULT_DISTRIBUTION_VERSION_RANGE,
@@ -64,22 +64,22 @@ import {
6464
} from "./distribution";
6565
import {
6666
findLanguage,
67-
tmpDirDisposal,
68-
showBinaryChoiceDialog,
6967
showAndLogErrorMessage,
70-
showAndLogWarningMessage,
68+
showAndLogExceptionWithTelemetry,
7169
showAndLogInformationMessage,
70+
showAndLogWarningMessage,
71+
showBinaryChoiceDialog,
7272
showInformationMessageWithAction,
7373
tmpDir,
74-
showAndLogExceptionWithTelemetry,
74+
tmpDirDisposal,
7575
} from "./helpers";
7676
import { asError, assertNever, getErrorMessage } from "./pure/helpers-pure";
7777
import { spawnIdeServer } from "./ide-server";
7878
import { ResultsView } from "./interface";
7979
import { WebviewReveal } from "./interface-utils";
8080
import {
81-
ideServerLogger,
8281
extLogger,
82+
ideServerLogger,
8383
ProgressReporter,
8484
queryServerLogger,
8585
} from "./common";
@@ -97,8 +97,8 @@ import {
9797
commandRunner,
9898
commandRunnerWithProgress,
9999
ProgressCallback,
100-
withProgress,
101100
ProgressUpdate,
101+
withProgress,
102102
} from "./commandRunner";
103103
import { CodeQlStatusBarHandler } from "./status-bar";
104104

@@ -115,7 +115,6 @@ import {
115115
exportSelectedRemoteQueryResults,
116116
exportVariantAnalysisResults,
117117
} from "./remote-queries/export-results";
118-
import { RemoteQuery } from "./remote-queries/remote-query";
119118
import { EvalLogViewer } from "./eval-log-viewer";
120119
import { SummaryLanguageSupport } from "./log-insights/summary-language-support";
121120
import { JoinOrderScannerProvider } from "./log-insights/join-order";
@@ -1129,15 +1128,6 @@ async function activateWithInstalledDistribution(
11291128
),
11301129
);
11311130

1132-
ctx.subscriptions.push(
1133-
commandRunner(
1134-
"codeQL.monitorRemoteQuery",
1135-
async (queryId: string, query: RemoteQuery, token: CancellationToken) => {
1136-
await rqm.monitorRemoteQuery(queryId, query, token);
1137-
},
1138-
),
1139-
);
1140-
11411131
ctx.subscriptions.push(
11421132
commandRunner("codeQL.copyRepoList", async (queryId: string) => {
11431133
await rqm.copyRemoteQueryRepoListToClipboard(queryId);

extensions/ql-vscode/src/query-history/query-history-manager.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -539,11 +539,7 @@ export class QueryHistoryManager extends DisposableObject {
539539
await Promise.all(
540540
this.treeDataProvider.allHistory.map(async (item) => {
541541
if (item.t === "remote") {
542-
await this.remoteQueriesManager.rehydrateRemoteQuery(
543-
item.queryId,
544-
item.remoteQuery,
545-
item.status,
546-
);
542+
await this.remoteQueriesManager.rehydrateRemoteQuery(item.queryId);
547543
}
548544
if (item.t === "variant-analysis") {
549545
await this.variantAnalysisManager.rehydrateVariantAnalysis(

0 commit comments

Comments
 (0)