Vscode-r: Support for outlines in vscode?

Created on 17 Aug 2018  路  8Comments  路  Source: Ikuyadeu/vscode-R

Hello,

Thank you for this extension!
This is more of a feature question: somehow vscodes doesn't support symbols/outlines for R, is there a way to add such functionalities to VS Code (for R)?

https://marketplace.visualstudio.com/items?itemName=patrys.vscode-code-outline

in vim, such functionality are supported through plugins such as ctags/taglist/tagbar, etc.

Best,
Isaac

feature-request language server

Most helpful comment

@ipstone Thank you for additional information!
I checked, it looks fit for language server protocol than here.
I will survey more.

All 8 comments

@ipstone Thank you for information. It looks good function!
However, I didn't understand yet, how to implement.
So, I put it as todo.

hi @Ikuyadeu - perhaps this link is helpful for providing outline view function for vscode R: https://github.com/Microsoft/vscode-go/blob/master/src/goOutline.ts

I am relative new to vscode - will explore more to see how to add this feature.

@ipstone Thank you for additional information!
I checked, it looks fit for language server protocol than here.
I will survey more.

I would love this feature... Not sure where it is best handled, but please (someone... anyone!) bring this one. 馃憤

I agree that this is a language server feature. The language server would need an implementation of DocumentSymbolProvider.

This is now supported by the latest version of the language server. Until it鈥檚 updated on CRAN, it can be installed with:

devtools::install_github("REditorSupport/languageserver")

just a quick comment: install the language server (default): works fine for my setup: install.packages("languageserver")

R version 3.6.1 (2019-07-05) Platform: x86_64-conda_cos6-linux-gnu (64-bit) Running under: CentOS Linux 7 (Core)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

michaelHL picture michaelHL  路  3Comments

JimmyZJX picture JimmyZJX  路  3Comments

Dee-L picture Dee-L  路  5Comments

renkun-ken picture renkun-ken  路  3Comments

nathaneastwood picture nathaneastwood  路  6Comments