-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
svelte-check
ignoring jsconfig.json
's exclude
option
#1234
Comments
Typescript's tsserver has a concept called inferred project. It seems like if according to the /**@type {string | undefined}*/
let a; Hover over it in the editor and you'll see that So technically the difference is that we have a different approach to determine whether the file belongs to the But I don't know if we can make it consistent with the tsserver. Historically, setting svelte files in the And by the way, your exclude actually doesn't do anything. As the route path is not in the |
Thanks for your explanation. So, the best workaround to this issue would be to do the following in
Yeah I agree that wouldn't be ideal. Instead of requiring people to use
Also thanks for this; I didn't realize! The example is updated to correct for this. |
svelte-check
will not use ajsconfig.json
'sexclude
option to ignore.svelte
files.Please see this to reproduce.
If you open this project in vscode and navigate to
jsconfig.json
you'll see thatsrc/routes
is excluded from type checking. This is confirmed to work for*.js
files (seesrc/routes/in-route.js
). However, as seen insrc/routes/index.svelte
, the language server will ignore the exclusion of this folder and perform type checking.The text was updated successfully, but these errors were encountered: