@@ -169,12 +169,10 @@ let isInstallingOrUpdatingDistribution = false;
169169const extensionId = "GitHub.vscode-codeql" ;
170170const extension = extensions . getExtension ( extensionId ) ;
171171
172- function getCommands (
173- variantAnalysisManager : VariantAnalysisManager ,
174- ) : ExtensionCommands {
172+ function getCommands ( ) : ExtensionCommands {
175173 return {
176- "codeQL.openVariantAnalysisLogs " : async ( variantAnalysisId : number ) => {
177- await variantAnalysisManager . openVariantAnalysisLogs ( variantAnalysisId ) ;
174+ "codeQL.openDocumentation " : async ( ) => {
175+ await env . openExternal ( Uri . parse ( "https://codeql.github.com/docs/" ) ) ;
178176 } ,
179177 } ;
180178}
@@ -1164,19 +1162,9 @@ async function activateWithInstalledDistribution(
11641162 ) ,
11651163 ) ;
11661164
1167- /*
1168- ctx.subscriptions.push(
1169- commandRunner(
1170- "codeQL.openVariantAnalysisLogs",
1171- async (variantAnalysisId: number) => {
1172- await variantAnalysisManager.openVariantAnalysisLogs(variantAnalysisId);
1173- },
1174- ),
1175- );
1176- */
1177-
1178- const allCommands : Partial < AllCommands > = {
1179- ...getCommands ( variantAnalysisManager ) ,
1165+ const allCommands : AllCommands = {
1166+ ...getCommands ( ) ,
1167+ ...variantAnalysisManager . getCommands ( ) ,
11801168 } ;
11811169
11821170 for ( const [ commandName , command ] of Object . entries ( allCommands ) ) {
@@ -1383,12 +1371,6 @@ async function activateWithInstalledDistribution(
13831371 ) ,
13841372 ) ;
13851373
1386- ctx . subscriptions . push (
1387- commandRunner ( "codeQL.openDocumentation" , async ( ) =>
1388- env . openExternal ( Uri . parse ( "https://codeql.github.com/docs/" ) ) ,
1389- ) ,
1390- ) ;
1391-
13921374 ctx . subscriptions . push (
13931375 commandRunner ( "codeQL.copyVersion" , async ( ) => {
13941376 const text = `CodeQL extension version: ${
0 commit comments