From 21bc25ac903040cc37a3202ec057561f723df387 Mon Sep 17 00:00:00 2001 From: Ivan Esmantovich Date: Fri, 3 Jan 2025 18:48:11 +0300 Subject: [PATCH] fix: source of the TypeScript plugin modal is now visible (#2646) --- packages/svelte-vscode/src/tsplugin.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/svelte-vscode/src/tsplugin.ts b/packages/svelte-vscode/src/tsplugin.ts index 066b2afe6..2b0b46e9e 100644 --- a/packages/svelte-vscode/src/tsplugin.ts +++ b/packages/svelte-vscode/src/tsplugin.ts @@ -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. ' + @@ -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); } }