Skip to content

Commit dfb6d65

Browse files
committed
Await devkit activation before attempting to start server to avoid duplicate toasts if failure
1 parent 9bd1305 commit dfb6d65

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)