@@ -1092,39 +1092,6 @@ async function activateWithInstalledDistribution(
10921092 ) ,
10931093 ) ;
10941094
1095- ctx . subscriptions . push (
1096- commandRunnerWithProgress (
1097- "codeQL.runVariantAnalysis" ,
1098- async (
1099- progress : ProgressCallback ,
1100- token : CancellationToken ,
1101- uri : Uri | undefined ,
1102- ) =>
1103- await runVariantAnalysis ( variantAnalysisManager , progress , token , uri ) ,
1104- {
1105- title : "Run Variant Analysis" ,
1106- cancellable : true ,
1107- } ,
1108- ) ,
1109- ) ;
1110-
1111- // Since we are tracking extension usage through commands, this command mirrors the "codeQL.runVariantAnalysis" command
1112- ctx . subscriptions . push (
1113- commandRunnerWithProgress (
1114- "codeQL.runVariantAnalysisContextEditor" ,
1115- async (
1116- progress : ProgressCallback ,
1117- token : CancellationToken ,
1118- uri : Uri | undefined ,
1119- ) =>
1120- await runVariantAnalysis ( variantAnalysisManager , progress , token , uri ) ,
1121- {
1122- title : "Run Variant Analysis" ,
1123- cancellable : true ,
1124- } ,
1125- ) ,
1126- ) ;
1127-
11281095 const allCommands : AllCommands = {
11291096 ...getCommands ( ) ,
11301097 ...variantAnalysisManager . getCommands ( ) ,
@@ -1891,25 +1858,6 @@ async function openReferencedFile(
18911858 }
18921859}
18931860
1894- async function runVariantAnalysis (
1895- variantAnalysisManager : VariantAnalysisManager ,
1896- progress : ProgressCallback ,
1897- token : CancellationToken ,
1898- uri : Uri | undefined ,
1899- ) : Promise < void > {
1900- progress ( {
1901- maxStep : 5 ,
1902- step : 0 ,
1903- message : "Getting credentials" ,
1904- } ) ;
1905-
1906- await variantAnalysisManager . runVariantAnalysis (
1907- uri || window . activeTextEditor ?. document . uri ,
1908- progress ,
1909- token ,
1910- ) ;
1911- }
1912-
19131861async function viewAst (
19141862 astViewer : AstViewer ,
19151863 printAstTemplateProvider : TemplatePrintAstProvider ,
0 commit comments