PHANTOM
🇮🇳 IN
Skip to content

fix unhandled promise rejection in getConfiguration#760

Merged
dbaeumer merged 1 commit intomicrosoft:mainfrom
bmewburn:getConfiguration-unhandled-promise-rejection
Oct 22, 2021
Merged

fix unhandled promise rejection in getConfiguration#760
dbaeumer merged 1 commit intomicrosoft:mainfrom
bmewburn:getConfiguration-unhandled-promise-rejection

Conversation

@bmewburn
Copy link
Contributor

@bmewburn bmewburn commented Apr 27, 2021

Hi @dbaeumer , I've had reports of UnhandledPromiseRejectionWarning: TypeError: Cannot read property '0' of null because the result of workspace/configuration is expected to be an array. It looks like the client (not vscode) is not following LSP here which states the response should be any[]. Regardless, this PR aims to safely handle the unexpected response.

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