Skip to content

Commit e18256d

Browse files
dibarbetgithub-actions
authored andcommitted
Await devkit activation before attempting to start server to avoid duplicate toasts if failure
1 parent c4e652a commit e18256d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lsptoolshost/server/roslynLanguageServer.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,11 @@ export class RoslynLanguageServer {
255255
channel: vscode.LogOutputChannel,
256256
traceChannel: vscode.OutputChannel
257257
): Promise<RoslynLanguageServer> {
258+
const devKit = getCSharpDevKit();
259+
if (devKit) {
260+
await devKit.activate();
261+
}
262+
258263
const serverOptions: ServerOptions = async () => {
259264
return await this.startServer(
260265
platformInfo,

0 commit comments

Comments
 (0)