You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: mark project as dirty after enabling language service
This commit fixes a bug in which the program becomes unavailable after
the language service is re-enabled, resulting in a crash.
When the language service is disabled, the program gets discarded.
However, when the language service is re-enabled, the program is not
recreated.
This bug was difficult to reproduce because it was masked by the fact that
during normal startup, ngcc gets run, and in the process, ngcc generates a
lockfile named `__ngcc_lock_file__` in the `node_modules` directory.
This triggers the directory watcher, and through a long chain of events,
reloads the Configured project, therefore re-creating the program.
Without ngcc run (make it a no-op), the extension will crash because the
language service is unable to return the program.
0 commit comments