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.

Create folder when adding folder to workspace

See original GitHub issue

When in a workspace, and you right click and select “Add Folder to Workspace”, the drop down to select a folder has no way to create folders, so you have to create it first outside of code-server, usually by using the terminal. While it really isn’t too much of an issue to drop down into a terminal and just run mkdir <path>, it would be nice to have some kind of way to create folders as you’re adding them, as does regular VSCode since it opens up a File Browser Dialog native to the OS. Maybe a file browser component should be created and added to help with navigation and file management, or the existing “Add Folder to Workspace” just needs to be tweeked?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
DeadlySurgeoncommented, Sep 22, 2021

image

I know I said later this week, but life hit me like a truck.

So with my instance, I don’t have the folder ~/rust. When I type out /home/surgeon/rust and press enter, instead of creating this directory, it will complain that it doesn’t exist. To create this directory on the remote instance, I’ll need to go into a terminal to run mkdir on it. What if it instead had a dialog that said something on the lines of The path ${path} doesn't exist, would you like to create it [ yes | no ], and if possible, where ${path} is the parts of the directory that exist would be in green while the parts that don’t would be in red so you know what folders it would be creating:

Color Example

(obviously there would be a button or something in place of [ yes | no ]

image

On a side note, potentially pressing enter again would create it, so those who are used to only using keyboard shortcuts could continue only using keyboards in this flow, and esc would cancel it like it does now.

1reaction
jsjoeiocommented, Sep 22, 2021

OH! Okay, now I understand what you mean. That would be great! Thanks for explaining that 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Workspaces in Visual Studio Code
It is easy to add or remove folders in your workspace. You can start off by opening a folder in VS Code and...
Read more >
Create folder when adding folder to workspace #3968 - GitHub
When in a workspace, and you right click and select "Add Folder to Workspace", the drop down to select a folder has no...
Read more >
Add files and folders to shared drives - Google Support
On the left, click a shared drive or existing folder. · Click New "" and then Folder. · Enter a folder name and...
Read more >
How do I create folders and sub-folders? - Huddle Help
You can create folders at the top level of the Files tab or create sub-folders by clicking into the relevant folder and creating...
Read more >
Create Folders in a CMS Workspace - Salesforce Help
In Lightning Experience, from the App Launcher, open the Digital Experiences app (previously named Salesforce CMS). · Open a workspace for edit. ·...
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