File tree Expand file tree Collapse file tree
extensions/ql-vscode/src/variant-analysis Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -268,7 +268,14 @@ export class VariantAnalysisManager
268268 }
269269 if ( ! this . views . has ( variantAnalysisId ) ) {
270270 // The view will register itself with the manager, so we don't need to do anything here.
271- this . track ( new VariantAnalysisView ( this . ctx , variantAnalysisId , this ) ) ;
271+ this . track (
272+ new VariantAnalysisView (
273+ this . ctx ,
274+ this . app . commandManager ,
275+ variantAnalysisId ,
276+ this ,
277+ ) ,
278+ ) ;
272279 }
273280
274281 const variantAnalysisView = this . views . get ( variantAnalysisId ) ! ;
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import {
1717} from "./variant-analysis-view-manager" ;
1818import { showAndLogWarningMessage } from "../helpers" ;
1919import { telemetryListener } from "../telemetry" ;
20+ import { ExtensionCommandManager } from "../common/commands" ;
2021
2122export class VariantAnalysisView
2223 extends AbstractWebview < ToVariantAnalysisMessage , FromVariantAnalysisMessage >
@@ -26,6 +27,7 @@ export class VariantAnalysisView
2627
2728 public constructor (
2829 ctx : ExtensionContext ,
30+ private readonly commandManager : ExtensionCommandManager ,
2931 public readonly variantAnalysisId : number ,
3032 private readonly manager : VariantAnalysisViewManager < VariantAnalysisView > ,
3133 ) {
@@ -145,7 +147,7 @@ export class VariantAnalysisView
145147 ) ;
146148 break ;
147149 case "openLogs" :
148- await commands . executeCommand (
150+ await this . commandManager . executeCommand (
149151 "codeQL.openVariantAnalysisLogs" ,
150152 this . variantAnalysisId ,
151153 ) ;
You can’t perform that action at this time.
0 commit comments