REditorSupport / languageserver

An implementation of the Language Server Protocol for R
Other
564 stars 91 forks source link

Autocompletion Bugs in vscode rmd-files #632

Open LGraz opened 10 months ago

LGraz commented 10 months ago

Dear Developers <3

Please apologize if this not a languageserver but a vscode-R issue.

when autocompleting is.nume<cursor> in R files it autocompletes nicely to is.numeric(<cursor>) in rmd files it autocompletes to is.is.numeric(<cursor>) (note the is.is.). This happens with all is.<class> and as.<class> functions.
data.fra<cursor> however, autocompletes correctly to data.frame(<cursor>) in rmd files if written in one go but not if you type data.fra go with the cursor to another word, come back, add the m and autocomplete.

Another annoying behavior is that pri<cursor> () gets autocompleted to print(<cursor>) (). so it adds paranthethesis even though there are already some. This is possibly more a feature than a bug, however I do not see any use case for it.

Best Regards :)