Skip to content

Commit 36fab7c

Browse files
Prompt to restart extensions when CDK is loaded (#8476)
Co-authored-by: David Barbet <[email protected]>
1 parent 086efb7 commit 36fab7c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lsptoolshost/server/roslynLanguageServer.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -957,17 +957,17 @@ export class RoslynLanguageServer {
957957
}
958958

959959
const title: CommandOption = {
960-
title: vscode.l10n.t('Restart Language Server'),
961-
command: 'dotnet.restartServer',
960+
title: vscode.l10n.t('Reload C# Extension'),
961+
command: 'workbench.action.restartExtensionHost',
962962
};
963963
if (csharpDevkitExtension && !_wasActivatedWithCSharpDevkit) {
964-
// We previously started without C# Dev Kit and its now installed.
965-
// Offer a prompt to restart the server to use C# Dev Kit.
964+
// We previously started without C# Dev Kit and it's now installed.
965+
// Offer a prompt to restart extensions in order to use C# Dev Kit.
966966
this._channel.info(`Detected new installation of ${csharpDevkitExtensionId}`);
967-
const message = `Detected installation of ${csharpDevkitExtensionId}. Would you like to relaunch the language server for added features?`;
967+
const message = `Detected installation of C# Dev Kit. Please reload the C# extension to continue.`;
968968
showInformationMessage(vscode, message, title);
969969
} else {
970-
// Any other change to extensions is irrelevant - an uninstall requires a reload of the window
970+
// Any other change to extensions is irrelevant - an uninstall requires the extension host to restart
971971
// which will automatically restart this extension too.
972972
}
973973
})

0 commit comments

Comments
 (0)