Skip to content

Conversation

@renkun-ken
Copy link
Member

What problem did you solve?

Closes randy3k/radian#316.

This PR completely replaces View() and utils::View() in favor of the session watcher version so that tibble::view also opens a data viewer in vscode.

(If you do not have screenshot) How can I check this pull request?

The following should all open a data viewer in vscode:

View(mtcars)
utils::View(mtcars)
tibble::view(mtcars)

.vsc.page_viewer <- .vsc$show_page_viewer

# assign functions that are optional:
for (funcName in c("View")) {
Copy link
Member Author

Choose a reason for hiding this comment

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

funcName is actually leaked to be a global variable in the current release.

Copy link
Member

@ManuelHentschel ManuelHentschel left a comment

Choose a reason for hiding this comment

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

Lgtm, thanks!

Side note: On my machine the viewer only works when webpack is enabled, otherwise it just opens an empty webview.

@renkun-ken renkun-ken merged commit 3e483c3 into master Oct 11, 2021
@renkun-ken renkun-ken deleted the replace-view branch October 11, 2021 11:07
ElianHugh pushed a commit to ElianHugh/vscode-R that referenced this pull request May 12, 2022
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.

provide a option to turn off the internal data viewer

3 participants