Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check workspace folder with both original and real path #827

Merged
merged 1 commit into from
Oct 22, 2021

Conversation

renkun-ken
Copy link
Member

@renkun-ken renkun-ken commented Oct 20, 2021

What problem did you solve?

Closes #393
Closes #628
Closes #825

This PR make isFromWorkspace also check if the session requests come from the real path of the workspace folders if they are symlinks so that session watcher could work with symlink workspace folders.

How can I check this pull request?

  1. Create a folder test.
  2. Create a symlink test2 to that folder.
  3. Open workspace folder test2 in vscode and create an R file to activate vscode-R.
  4. Start an R session, getwd() shows its working directory is test instead of test2.
  5. But the real path of test2 is test, so the session will be attached.
  6. Session watcher features should now work: session symbols, workspace viewer, View(mtcars), plot(rnorm(100)), etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant