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 excluded file got added to snapshot manager #956

Merged
merged 2 commits into from
Apr 22, 2021

Conversation

jasonlyu123
Copy link
Member

This fixes the underlying problem for #950 and sublimelsp/LSP-svelte#44. The files are added into snapshot manager no matter if it's updated or added. This caused memory to blow up alongside the problem of the fallback watcher. The fallback watcher is not the actual problem.

@jasonlyu123 jasonlyu123 merged commit 94f4124 into sveltejs:master Apr 22, 2021
@jasonlyu123 jasonlyu123 deleted the watch-file-add-excluded branch April 22, 2021 06:28
@dummdidumm
Copy link
Member

Thanks! Rereading this, I think I introduced this bug about one month ago while refactoring the SnapshotManager. I changed the behavior back then to create new snapshots if one doesn't exist already. This should fix it.

@jasonlyu123
Copy link
Member Author

Part of it also my fault. The intention of the original code is not very clear 😄.

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