Skip to content

Commit

Permalink
fix: reword plugin modal options (#2646) (#2647)
Browse files Browse the repository at this point in the history
In accordance with VS Code style guidelines + shorter so you can see the source

Fixes #2646
  • Loading branch information
ivanesmantovich authored Jan 6, 2025
1 parent c830841 commit 477e76d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/svelte-vscode/src/tsplugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class TsPlugin {
return;
}

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

if (response === answers[2]) {
if (response === answers[0]) {
workspace.getConfiguration('svelte').update('enable-ts-plugin', true, true);
} else if (response === answers[1]) {
} else if (response === answers[2]) {
workspace.getConfiguration('svelte').update('ask-to-enable-ts-plugin', false, true);
}
}
Expand Down

0 comments on commit 477e76d

Please sign in to comment.