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-service): Recover from error in analyzing Ng Modules #37108
Conversation
ptal @kyliau. The error messages we get from resolution failure would make great diagnostics, so I think we should look into propagating it from the compiler. |
@@ -71,6 +71,8 @@ export class TypeScriptServiceHost implements LanguageServiceHost { | |||
ngModuleByPipeOrDirective: new Map(), | |||
ngModules: [], | |||
}; | |||
private lastAnalysisSucceeded = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason why this flag is needed? I think the code would work without it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah sorry, an artifact of when i was doing the spy thing and didn't update source files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for fixing this!
In place of failing to return analyzed Ng Modules when the analyzer fails, return the previously-analyzed Ng Modules (which may be empty) and log an error. Closes angular/vscode-ng-language-service#777
…7108) In place of failing to return analyzed Ng Modules when the analyzer fails, return the previously-analyzed Ng Modules (which may be empty) and log an error. Closes angular/vscode-ng-language-service#777 PR Close #37108
…gular#37108) In place of failing to return analyzed Ng Modules when the analyzer fails, return the previously-analyzed Ng Modules (which may be empty) and log an error. Closes angular/vscode-ng-language-service#777 PR Close angular#37108
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
…gular#37108) In place of failing to return analyzed Ng Modules when the analyzer fails, return the previously-analyzed Ng Modules (which may be empty) and log an error. Closes angular/vscode-ng-language-service#777 PR Close angular#37108
Closes angular/vscode-ng-language-service#777
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Does this PR introduce a breaking change?