Skip to content

Explorer: auto create folder when file path ends with / #173902

@zardoy

Description

@zardoy

For now on explorer.newFile vscode doesn't distinguish wether inputbox has trailing / or not. It would create file instead of folder in that case, which can be handy.

For now if you run explorer.newFile had an idea to create new file within new folder test/integration/etc and then forgot test name to create or decided to do it later you cannot just create folder from typed value. You have either:

  • Create dummy file at end eg: test/integration/etc/a and then remove just created file
  • Select all & copy typed value, run explorer.newFolder and paste value

I want clean and fast way to switch between creating file or folder. Please see my implementation for desired behavior: #173901

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions