question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prompt which "working directory" when in multiple projects workspace

See original GitHub issue

Is your feature request related to a problem? Please describe. VSCode allows to create workspaces that are not single project/folder. For example, you want the workspace to have “project_a” and “project_b” opened together for some reason.

{
  "folders": [
    {
      "path": "project_a"
    },
    {
      "path": "project_b"
    }
  ]
}

When opening a new terminal, there is a prompt to set the working directory of the terminal: image

vscode-R does not ask and use the first (in alphabetical order) as working directory. image

Describe the solution you’d like The feature would ask the user to set the working directory as it is currently done for new terminals.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
MilesMcBaincommented, Mar 31, 2022

I think having a selection dialogue when there is no active editior from which to derive a working directory is a reasonable fallback. I just wouldn’t want to see that become the behaviour at all times.

The current behaviour is consistent with Emacs Speaks Statistics for what that’s worth.

On the last point I believe there is a VSCode setting that controls the way terminals are named, so you may be able to get that Debian behaviour on windows also.

0reactions
mcanouilcommented, Mar 31, 2022

I agree about having it all times would be really annoying, as #965 currently is by continuously and repeatedly prompting to install languageserver (see #1037).

About terminal naming, it is named from the working directory for powershell, only R terminal does not have it on Windows. I’ll double check the settings (which are mostly synced across OSs).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Workspaces in Visual Studio Code
What is a VS Code "workspace"? A Visual Studio Code "workspace" is the collection of one or more folders that are opened in...
Read more >
R basics, workspace and working directory, RStudio projects
R basics, workspace and working directory, RStudio projects ... All R statements where you create objects -- "assignments" -- have this form:
Read more >
Working Directories and Workspaces in the RStudio IDE
IMPORTANT NOTE: The RStudio IDE supports Projects, which make managing multiple working directories more straightforward.
Read more >
Jenkins: How To Build multiple projects from a TFS repository?
For what it's worth, it's not the workspace -new line that's causing this, it's the second line which creates a working folder mapping....
Read more >
How to have multiple projects in same window?
I have a directory open in PHPStorm, and code tracing and ... but when I do that PHPStorm prompts me only to replace...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found