Skip to content

Commit 6b2c56e

Browse files
committed
Add correct binding of sourcemap instance
1 parent f85ab29 commit 6b2c56e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

extensions/ql-vscode/src/log-insights/summary-language-support.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,22 @@ export class SummaryLanguageSupport extends DisposableObject {
5959
super();
6060

6161
this.push(
62-
window.onDidChangeActiveTextEditor(this.handleDidChangeActiveTextEditor),
62+
window.onDidChangeActiveTextEditor(
63+
this.handleDidChangeActiveTextEditor.bind(this),
64+
),
6365
);
6466
this.push(
6567
window.onDidChangeTextEditorSelection(
66-
this.handleDidChangeTextEditorSelection,
68+
this.handleDidChangeTextEditorSelection.bind(this),
6769
),
6870
);
6971
this.push(
70-
workspace.onDidCloseTextDocument(this.handleDidCloseTextDocument),
72+
workspace.onDidCloseTextDocument(
73+
this.handleDidCloseTextDocument.bind(this),
74+
),
7175
);
7276

73-
this.push(commandRunner("codeQL.gotoQL", this.handleGotoQL));
77+
this.push(commandRunner("codeQL.gotoQL", this.handleGotoQL.bind(this)));
7478
}
7579

7680
/**

0 commit comments

Comments
 (0)