File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/language-server/src/plugins/typescript Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -233,10 +233,11 @@ async function createLanguageService(
233
233
svelteTsPath = __dirname ;
234
234
}
235
235
const sveltePackageInfo = getPackageInfo ( 'svelte' , tsconfigPath || workspacePath ) ;
236
+ // Svelte 4 has some fixes with regards to parsing the generics attribute.
236
237
// Svelte 5 has new features, but we don't want to add the new compiler into language-tools. In the future it's probably
237
238
// best to shift more and more of this into user's node_modules for better handling of multiple Svelte versions.
238
239
const svelteCompiler =
239
- sveltePackageInfo . version . major >= 5
240
+ sveltePackageInfo . version . major >= 4
240
241
? importSvelte ( tsconfigPath || workspacePath )
241
242
: undefined ;
242
243
You can’t perform that action at this time.
0 commit comments