File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -876,7 +876,7 @@ async function activateWithInstalledDistribution(
876876
877877 ctx . subscriptions . push ( astViewer ) ;
878878
879- const summaryLanguageSupport = new SummaryLanguageSupport ( ) ;
879+ const summaryLanguageSupport = new SummaryLanguageSupport ( app ) ;
880880 ctx . subscriptions . push ( summaryLanguageSupport ) ;
881881
882882 const mockServer = new VSCodeMockGitHubApiServer ( ctx ) ;
Original file line number Diff line number Diff line change 11import { readFile } from "fs-extra" ;
22import { RawSourceMap , SourceMapConsumer } from "source-map" ;
33import {
4- commands ,
54 Position ,
65 Selection ,
76 TextDocument ,
@@ -16,6 +15,7 @@ import { DisposableObject } from "../pure/disposable-object";
1615import { extLogger } from "../common" ;
1716import { getErrorMessage } from "../pure/helpers-pure" ;
1817import { SummaryLanguageSupportCommands } from "../common/commands" ;
18+ import { App } from "../common/app" ;
1919
2020/** A `Position` within a specified file on disk. */
2121interface PositionInFile {
@@ -55,7 +55,7 @@ export class SummaryLanguageSupport extends DisposableObject {
5555 */
5656 private sourceMap : SourceMapConsumer | undefined = undefined ;
5757
58- constructor ( ) {
58+ constructor ( private readonly app : App ) {
5959 super ( ) ;
6060
6161 this . push (
@@ -160,7 +160,7 @@ export class SummaryLanguageSupport extends DisposableObject {
160160 private async updateContext ( ) : Promise < void > {
161161 const position = await this . getQLSourceLocation ( ) ;
162162
163- await commands . executeCommand (
163+ await this . app . commands . execute (
164164 "setContext" ,
165165 "codeql.hasQLSource" ,
166166 position !== undefined ,
You can’t perform that action at this time.
0 commit comments