Skip to content

Commit 477e76d

Browse files
fix: reword plugin modal options (#2646) (#2647)
In accordance with VS Code style guidelines + shorter so you can see the source Fixes #2646
1 parent c830841 commit 477e76d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/svelte-vscode/src/tsplugin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class TsPlugin {
4646
return;
4747
}
4848

49-
const answers = ['Ask again later', "Don't show this message again", 'Enable Plugin'];
49+
const answers = ['Enable', 'Later', 'Do not show again'];
5050
const response = await window.showInformationMessage(
5151
'The Svelte for VS Code extension now contains a TypeScript plugin. ' +
5252
'Enabling it will provide intellisense for Svelte files from TS/JS files. ' +
@@ -55,9 +55,9 @@ export class TsPlugin {
5555
...answers
5656
);
5757

58-
if (response === answers[2]) {
58+
if (response === answers[0]) {
5959
workspace.getConfiguration('svelte').update('enable-ts-plugin', true, true);
60-
} else if (response === answers[1]) {
60+
} else if (response === answers[2]) {
6161
workspace.getConfiguration('svelte').update('ask-to-enable-ts-plugin', false, true);
6262
}
6363
}

0 commit comments

Comments
 (0)