Skip to content

fix unhandled promise rejection in getConfiguration - #760

Merged
Dirk Bäumer (dbaeumer) merged 1 commit into
microsoft:mainfrom
bmewburn:getConfiguration-unhandled-promise-rejection
Oct 22, 2021
Merged

fix unhandled promise rejection in getConfiguration#760
Dirk Bäumer (dbaeumer) merged 1 commit into
microsoft:mainfrom
bmewburn:getConfiguration-unhandled-promise-rejection

Conversation

@bmewburn

@bmewburn Ben Mewburn (bmewburn) commented Apr 27, 2021

Copy link
Copy Markdown
Contributor

Hi Dirk Bäumer (@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