We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78df663 commit 992dc65Copy full SHA for 992dc65
packages/svelte-vscode/src/extension.ts
@@ -122,7 +122,15 @@ export function activate(context: ExtensionContext) {
122
123
workspace.onDidSaveTextDocument(async (doc) => {
124
const parts = doc.uri.toString(true).split(/\/|\\/);
125
- if (['tsconfig.json', 'jsconfig.json'].includes(parts[parts.length - 1])) {
+ if (
126
+ [
127
+ 'tsconfig.json',
128
+ 'jsconfig.json',
129
+ 'svelte.config.js',
130
+ 'svelte.config.cjs',
131
+ 'svelte.config.mjs'
132
+ ].includes(parts[parts.length - 1])
133
+ ) {
134
await restartLS(false);
135
}
136
});
0 commit comments