Skip to content

Commit b340fa7

Browse files
committed
Make worksapce trust changed prompt more generic
1 parent a11b972 commit b340fa7

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

l10n/bundle.l10n.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"Reload C# Extension": "Reload C# Extension",
3-
"Workspace trust has changed. Would you like to reload the C# extension?": "Workspace trust has changed. Would you like to reload the C# extension?",
2+
"Reload Extensions": "Reload Extensions",
3+
"Workspace trust has changed. Would you like to reload extensions?": "Workspace trust has changed. Would you like to reload extensions?",
44
"How to setup Remote Debugging": "How to setup Remote Debugging",
55
"The C# extension for Visual Studio Code is incompatible on {0} {1} with the VS Code Remote Extensions. To see avaliable workarounds, click on '{2}'.": "The C# extension for Visual Studio Code is incompatible on {0} {1} with the VS Code Remote Extensions. To see avaliable workarounds, click on '{2}'.",
66
"The C# extension for Visual Studio Code is incompatible on {0} {1}.": "The C# extension for Visual Studio Code is incompatible on {0} {1}.",

src/main.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,10 @@ export async function activate(
107107
context.subscriptions.push(
108108
vscode.workspace.onDidGrantWorkspaceTrust(() => {
109109
const reloadTitle: CommandOption = {
110-
title: vscode.l10n.t('Reload C# Extension'),
110+
title: vscode.l10n.t('Reload Extensions'),
111111
command: 'workbench.action.restartExtensionHost',
112112
};
113-
const message = vscode.l10n.t(
114-
'Workspace trust has changed. Would you like to reload the C# extension?'
115-
);
113+
const message = vscode.l10n.t('Workspace trust has changed. Would you like to reload extensions?');
116114
showInformationMessage(vscode, message, reloadTitle);
117115
})
118116
);

0 commit comments

Comments
 (0)