Skip to content

Reject directory paths in navigateToFile() - #331

Open
M-Colley wants to merge 1 commit into
rstudio:mainfrom
M-Colley:fix/navigate-to-file-directory
Open

M-Colley wants to merge 1 commit into
rstudio:mainfrom
M-Colley:fix/navigate-to-file-directory

Conversation

@M-Colley

Copy link
Copy Markdown

Fixes #321.

Reject directory paths before calling the IDE file-opening API and direct users to filesPaneNavigate(). RStudio jobs forward the path to the IDE session so relative paths are checked in the session that opens the file.

The regression tests mock the IDE call and job dispatch. The source test suite passed with one existing IDE-only test skipped, and R CMD check --no-manual --ignore-vignettes returned OK on Windows.

This branch has not been deployed

No deployments
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.

Calling navigateToFile on directory makes rstudio crash

1 participant