Remove unused code
This commit is contained in:
@@ -312,14 +312,6 @@ export class QLDebugSession extends LoggingDebugSession implements Disposable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected configurationDoneRequest(
|
|
||||||
response: Protocol.ConfigurationDoneResponse,
|
|
||||||
args: Protocol.ConfigurationDoneArguments,
|
|
||||||
request?: Protocol.Request,
|
|
||||||
): void {
|
|
||||||
super.configurationDoneRequest(response, args, request);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected disconnectRequest(
|
protected disconnectRequest(
|
||||||
response: Protocol.DisconnectResponse,
|
response: Protocol.DisconnectResponse,
|
||||||
_args: Protocol.DisconnectArguments,
|
_args: Protocol.DisconnectArguments,
|
||||||
|
|||||||
@@ -8,13 +8,9 @@ import {
|
|||||||
CancellationTokenSource,
|
CancellationTokenSource,
|
||||||
} from "vscode";
|
} from "vscode";
|
||||||
import { DebuggerCommands } from "../common/commands";
|
import { DebuggerCommands } from "../common/commands";
|
||||||
import { isCanary } from "../config";
|
|
||||||
import { ResultsView } from "../interface";
|
|
||||||
import { WebviewReveal } from "../interface-utils";
|
|
||||||
import { DatabaseManager } from "../local-databases";
|
import { DatabaseManager } from "../local-databases";
|
||||||
import { LocalQueries, LocalQueryRun } from "../local-queries";
|
import { LocalQueries, LocalQueryRun } from "../local-queries";
|
||||||
import { DisposableObject } from "../pure/disposable-object";
|
import { DisposableObject } from "../pure/disposable-object";
|
||||||
import { CompletedLocalQueryInfo } from "../query-results";
|
|
||||||
import { CoreQueryResults } from "../queryRunner";
|
import { CoreQueryResults } from "../queryRunner";
|
||||||
import {
|
import {
|
||||||
getQuickEvalContext,
|
getQuickEvalContext,
|
||||||
@@ -145,15 +141,12 @@ export class DebuggerUI
|
|||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private readonly app: App,
|
private readonly app: App,
|
||||||
private readonly localQueryResultsView: ResultsView,
|
|
||||||
private readonly localQueries: LocalQueries,
|
private readonly localQueries: LocalQueries,
|
||||||
private readonly dbm: DatabaseManager,
|
private readonly dbm: DatabaseManager,
|
||||||
) {
|
) {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
if (isCanary()) {
|
this.push(debug.registerDebugAdapterTrackerFactory("codeql", this));
|
||||||
this.push(debug.registerDebugAdapterTrackerFactory("codeql", this));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public getCommands(): DebuggerCommands {
|
public getCommands(): DebuggerCommands {
|
||||||
@@ -236,11 +229,4 @@ export class DebuggerUI
|
|||||||
|
|
||||||
return this.getTrackerForSession(session);
|
return this.getTrackerForSession(session);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async showResultsForCompletedQuery(
|
|
||||||
query: CompletedLocalQueryInfo,
|
|
||||||
forceReveal: WebviewReveal,
|
|
||||||
): Promise<void> {
|
|
||||||
await this.localQueryResultsView.showResults(query, forceReveal, false);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -876,12 +876,7 @@ async function activateWithInstalledDistribution(
|
|||||||
);
|
);
|
||||||
|
|
||||||
void extLogger.log("Initializing debugger UI.");
|
void extLogger.log("Initializing debugger UI.");
|
||||||
const debuggerUI = new DebuggerUI(
|
const debuggerUI = new DebuggerUI(app, localQueries, dbm);
|
||||||
app,
|
|
||||||
localQueryResultsView,
|
|
||||||
localQueries,
|
|
||||||
dbm,
|
|
||||||
);
|
|
||||||
ctx.subscriptions.push(debuggerUI);
|
ctx.subscriptions.push(debuggerUI);
|
||||||
|
|
||||||
const dataExtensionsEditorModule =
|
const dataExtensionsEditorModule =
|
||||||
|
|||||||
Reference in New Issue
Block a user