Skip to content

Use empty string instead of NULL as default signature doc#371

Merged
renkun-ken merged 1 commit intoREditorSupport:masterfrom
renkun-ken:fix-signature-null-doc
Jan 27, 2021
Merged

Use empty string instead of NULL as default signature doc#371
renkun-ken merged 1 commit intoREditorSupport:masterfrom
renkun-ken:fix-signature-null-doc

Conversation

@renkun-ken
Copy link
Copy Markdown
Member

@renkun-ken renkun-ken commented Jan 26, 2021

With latest vscode-languageclient 7.0.0 used in vscode-r-lsp 0.1.14, the following code does not trigger SignatureHelp:

fun <- function(x, y) {
  x + y
}

fun(

It looks likedocumentation === null is no longer accepted by vscode-languageclient 7.0.0. The LSP says the following

documentation?: string | MarkupContent;

looks like documentation could not be null.

This PR is a simple fix and it works with latest vscode-r-lsp now.

@randy3k
Copy link
Copy Markdown
Member

randy3k commented Jan 26, 2021

LGTM

@renkun-ken renkun-ken merged commit e46efda into REditorSupport:master Jan 27, 2021
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