Skip to content

Append stack trace to every language server error#354

Merged
TwitchBronBron merged 3 commits intomasterfrom
better-languageserver-error-reporting
Mar 12, 2021
Merged

Append stack trace to every language server error#354
TwitchBronBron merged 3 commits intomasterfrom
better-languageserver-error-reporting

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