Skip to content

Commit 263fd07

Browse files
authored
[prerelease] Don't show duplicate toast if C# Dev Kit fails to activate (#8136)
2 parents c4e652a + e18256d commit 263fd07

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)