Fix 'undefined' this on files/changed listener
Signed-off-by: Fred Bricon <fbricon@gmail.com>
This commit is contained in:
parent
52f1f7034b
commit
9730799a08
1 changed files with 3 additions and 3 deletions
|
|
@ -509,9 +509,9 @@ export class Core {
|
|||
streamDiffLinesGenerator(this.configHandler, this.abortedMessageIds, msg),
|
||||
);
|
||||
|
||||
on("completeOnboarding", this.handleCompleteOnboarding);
|
||||
on("completeOnboarding", this.handleCompleteOnboarding.bind(this));
|
||||
|
||||
on("addAutocompleteModel", this.handleAddAutocompleteModel);
|
||||
on("addAutocompleteModel", this.handleAddAutocompleteModel.bind(this));
|
||||
|
||||
on("stats/getTokensPerDay", async (msg) => {
|
||||
const rows = await DevDataSqliteDb.getTokensPerDay();
|
||||
|
|
@ -552,7 +552,7 @@ export class Core {
|
|||
});
|
||||
|
||||
// File changes - TODO - remove remaining logic for these from IDEs where possible
|
||||
on("files/changed", this.handleFilesChanged);
|
||||
on("files/changed", this.handleFilesChanged.bind(this));
|
||||
const refreshIfNotIgnored = async (uris: string[]) => {
|
||||
const toRefresh: string[] = [];
|
||||
for (const uri of uris) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue