Skip to content
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

fix: handle issues with svelte file watching #2421

Merged
merged 7 commits into from
Jun 26, 2024

Conversation

jasonlyu123
Copy link
Member

@jasonlyu123 jasonlyu123 commented Jun 26, 2024

Fix the neovim file-watching issue mentioned in Discord. And most likely #2419. One possible reason for #2419 is with projects without tsconfig/jsconfig. Because of the wrong client svelte file checking logic, When the file is updated in the file system it gets overridden by the file system version so it longer is client file and thus removed in the typescript program.

@jasonlyu123 jasonlyu123 marked this pull request as ready for review June 26, 2024 07:49
@jasonlyu123
Copy link
Member Author

Yeah. This should fix #2419. The trigger is file save, once the file is saved it'll be marked as closed so further diagnostic is skipped.

@dummdidumm
Copy link
Member

From my testing the issue was also the missing pathToUrl in onWatchFileChanges. It wrongfully marked the document as not being opened because no document was found

@dummdidumm dummdidumm merged commit e94b82e into sveltejs:master Jun 26, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants