Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: source of the TypeScript plugin modal is now visible #2647

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading