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 9680a40 commit 59b6bbfCopy full SHA for 59b6bbf
packages/language-server/src/plugins/typescript/DocumentSnapshot.ts
@@ -134,7 +134,10 @@ export namespace DocumentSnapshot {
134
if (!normalizedPath.endsWith('node_modules/svelte/types/runtime/ambient.d.ts')) {
135
originalText = ts.sys.readFile(filePath) || '';
136
}
137
- if (normalizedPath.endsWith('svelte2tsx/svelte-shims.d.ts')) {
+ if (
138
+ normalizedPath.endsWith('svelte2tsx/svelte-shims.d.ts') ||
139
+ normalizedPath.endsWith('svelte-check/dist/src/svelte-shims.d.ts')
140
+ ) {
141
// If not present, the LS uses an older version of svelte2tsx
142
if (originalText.includes('// -- start svelte-ls-remove --')) {
143
originalText =
0 commit comments