Skip to content

Commit 2433312

Browse files
committed
Use arrow function to explicitly capture 'this'
1 parent a4fa795 commit 2433312

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lsptoolshost/roslynLanguageServer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ export class RoslynLanguageServer {
329329
this._languageClient?.sendNotification("serviceBroker/connect", { pipeName: pipeName });
330330
} else {
331331
// We'll subscribe if the process later launches, and call this function again to send the pipe name.
332-
this.context.subscriptions.push(exports.serverProcessLoaded(this.sendOrSubscribeForServiceBrokerConnection));
332+
this.context.subscriptions.push(exports.serverProcessLoaded(async() => this.sendOrSubscribeForServiceBrokerConnection()));
333333
}
334334
}
335335
}

0 commit comments

Comments
 (0)