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

Ensure that SignatureHelp and SignatureHelp has non-null arrays #112

Merged
merged 2 commits into from
Sep 3, 2018

Conversation

rcjsuen
Copy link
Collaborator

@rcjsuen rcjsuen commented Sep 1, 2018

While the LSP allows a SignatureHelp's signatures array to be optional, Monaco does not so we should ensure that it Monaco's representation of a SignatureHelp is properly initialized with a zero length array if the value from the language server is null or undefined.

See microsoft/monaco-editor#1045.

While the LSP allows a SignatureHelp's signatures array to be
optional, Monaco does not so we should ensure that it is
initialized with a zero length array if the value from the language
server is null or undefined.

Signed-off-by: Remy Suen <remy.suen@gmail.com>
While the LSP allows a SignatureInformation's parameters array to be
optional, Monaco does not so we should ensure that it is initialized
with a zero length array if the value from the language server is null
or undefined.

Signed-off-by: Remy Suen <remy.suen@gmail.com>
@rcjsuen
Copy link
Collaborator Author

rcjsuen commented Sep 1, 2018

The parameters array in SignatureInformation is actually the culprit of the bug in microsoft/monaco-editor#1045.

Either way, we should fix both of these cases...

@rcjsuen rcjsuen changed the title Ensure that a SignatureHelp has a non-null array Ensure that SignatureHelp and SignatureHelp has non-null arrays Sep 1, 2018
Copy link
Contributor

@akosyakov akosyakov left a comment

Choose a reason for hiding this comment

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

@rcjsuen thank you!

@akosyakov akosyakov merged commit 3f0a16a into TypeFox:master Sep 3, 2018
@rcjsuen rcjsuen deleted the signatureHelp branch September 3, 2018 10:48
@hifall
Copy link

hifall commented Sep 5, 2018

Is this PR supposed to fix Monaco Editor #1045? I have tried to upgrade to 0.8.0, but the crash issue still persists.

@rcjsuen
Copy link
Collaborator Author

rcjsuen commented Sep 5, 2018

Hi, @hifall. It should but it sounds like I missed something.

Please open a bug and describe your setup and versions there.

@hifall
Copy link

hifall commented Sep 5, 2018

Filed as Issue #115.

@rcjsuen rcjsuen mentioned this pull request Sep 5, 2018
@hifall
Copy link

hifall commented Sep 17, 2018

Confirmed working. Thanks!

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.

None yet

3 participants