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

Added error handling for @angular/language-service calls #138

Merged
merged 2 commits into from
Aug 4, 2017
Merged

Added error handling for @angular/language-service calls #138

merged 2 commits into from
Aug 4, 2017

Conversation

DBosley
Copy link
Contributor

@DBosley DBosley commented Aug 3, 2017

This PR should fix #128 for any errors thrown by the following @angular/language-service calls:

getHoverAt
getDefinitionAt
getTemplateReferences
getDiagnostics
getCompletionsAt

} catch (error) {
logger.msg(
`Error for ${name}:\n` +
` ${error}`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The stack is useful to diagnose problems. Consider changing this to error.stack || error

@chuckjaz
Copy link
Contributor

chuckjaz commented Aug 4, 2017

Let me know if you want to take my recommendation. I will commit this before the release as well.

@DBosley
Copy link
Contributor Author

DBosley commented Aug 4, 2017

@chuckjaz I'll toss that in there. One minute.

Adding try/catch around @angular/language-service calls to avoid output window opening on its own.
@DBosley
Copy link
Contributor Author

DBosley commented Aug 4, 2017

@chuckjaz All set!

@chuckjaz chuckjaz merged commit 88f2bd1 into angular:master Aug 4, 2017
@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 Feb 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Output Window gets opened when I type
2 participants