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(language-server): Only enable language service on open projects #1461

Merged
merged 1 commit into from
Jul 28, 2021

Conversation

atscott
Copy link
Collaborator

@atscott atscott commented Jul 28, 2021

After ngcc finishes, only enable language service for projects that
are open. This avoids an error that would otherwise be thrown by TypeScript.

It's not entirely clear what causes the project to close immediately
after opening, but it appears to be triggered by having files open from
multiple projects. The files not actively being displayed in the editor
have their projects closed, but this also only appears to happen after
having the editor open for a long time.

Fixes #1438
Fixes #1399 - Not entirely sure this fixes the issue there, but it may
and we don't currently have any other indicators for what the issue
there might be if the cause is different.

@atscott atscott added the target: patch This PR is targeted for the next patch release label Jul 28, 2021
@google-cla google-cla bot added the cla: yes label Jul 28, 2021
After `ngcc` finishes, only enable language service for projects that
are open. This avoids an error that would otherwise be thrown by TypeScript.

It's not entirely clear what causes the project to close immediately
after opening, but it appears to be triggered by having files open from
multiple projects. The files not actively being displayed in the editor
have their projects closed, but this also only appears to happen after
having the editor open for a long time.

Fixes angular#1438
Fixes angular#1399 - Not entirely sure this fixes the issue there, but it may
and we don't currently have any other indicators for what the issue
there might be if the cause is different.
@atscott atscott force-pushed the enableProjectOnlyIfNotClosed branch from 9556888 to ebf45f0 Compare July 28, 2021 23:00
@atscott atscott added the action: merge Ready to merge label Jul 28, 2021
@atscott atscott merged commit 30c4996 into angular:master Jul 28, 2021
atscott added a commit that referenced this pull request Jul 28, 2021
…1461)

After `ngcc` finishes, only enable language service for projects that
are open. This avoids an error that would otherwise be thrown by TypeScript.

It's not entirely clear what causes the project to close immediately
after opening, but it appears to be triggered by having files open from
multiple projects. The files not actively being displayed in the editor
have their projects closed, but this also only appears to happen after
having the editor open for a long time.

Fixes #1438
Fixes #1399 - Not entirely sure this fixes the issue there, but it may
and we don't currently have any other indicators for what the issue
there might be if the cause is different.

(cherry picked from commit 30c4996)
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Aug 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge Ready to merge cla: yes target: patch This PR is targeted for the next patch release
Projects
None yet
1 participant