Remove codeQL.openVariantAnalysisQueryFile command
This commit is contained in:
Родитель
04c24d0996
Коммит
34ab409050
|
@ -1216,15 +1216,6 @@ async function activateWithInstalledDistribution(
|
|||
),
|
||||
);
|
||||
|
||||
ctx.subscriptions.push(
|
||||
commandRunner(
|
||||
"codeQL.openVariantAnalysisQueryFile",
|
||||
async (variantAnalysisId: number) => {
|
||||
await variantAnalysisManager.openQueryFile(variantAnalysisId);
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
ctx.subscriptions.push(
|
||||
commandRunner("codeQL.openReferencedFile", async (selectedQuery: Uri) => {
|
||||
await openReferencedFile(qs, cliServer, selectedQuery);
|
||||
|
|
|
@ -522,8 +522,7 @@ export class QueryHistoryManager extends DisposableObject {
|
|||
}
|
||||
|
||||
if (finalSingleItem.t === "variant-analysis") {
|
||||
await commands.executeCommand(
|
||||
"codeQL.openVariantAnalysisQueryFile",
|
||||
await this.variantAnalysisManager.openQueryFile(
|
||||
finalSingleItem.variantAnalysis.id,
|
||||
);
|
||||
return;
|
||||
|
|
|
@ -24,4 +24,5 @@ export interface VariantAnalysisViewManager<
|
|||
getRepoStates(
|
||||
variantAnalysisId: number,
|
||||
): Promise<VariantAnalysisScannedRepositoryState[]>;
|
||||
openQueryFile(variantAnalysisId: number): Promise<void>;
|
||||
}
|
||||
|
|
|
@ -119,10 +119,7 @@ export class VariantAnalysisView
|
|||
);
|
||||
break;
|
||||
case "openQueryFile":
|
||||
void commands.executeCommand(
|
||||
"codeQL.openVariantAnalysisQueryFile",
|
||||
this.variantAnalysisId,
|
||||
);
|
||||
await this.manager.openQueryFile(this.variantAnalysisId);
|
||||
break;
|
||||
case "openQueryText":
|
||||
void commands.executeCommand(
|
||||
|
|
Загрузка…
Ссылка в новой задаче