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

Append stack trace to every language server error #354

Merged
merged 3 commits into from
Mar 12, 2021

Conversation

TwitchBronBron
Copy link
Member

The language server sometimes throws error messages, but the language server output window in vscode does not show the stack trace, which makes these errors harder to track down.

Notable changes:

  • adds a decorator for use in LanguageServer.ts that monitors for failures, and appends the stack trace to the error.message.

Here's what the new errors look like in the console:
image

@TwitchBronBron TwitchBronBron merged commit 471884d into master Mar 12, 2021
@TwitchBronBron TwitchBronBron deleted the better-languageserver-error-reporting branch March 12, 2021 01:50
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