You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Provide a command to delete the currently opened file #4366
I would have naturally expected this sort of command to be available from the Command Palette. :) Could we get this added, to enhance the already awesome keyboard experience? 😄
Benjamin Pasero (@bpasero) Maybe label as help-wanted / effort-easy so we can find stuff like this better. Or even make a label 'extension-opportunity' or something.
changed the title [-]Feature Request: Add VSCode command to delete a file[/-][+]Provide a command to delete the currently opened file[/+]on Mar 17, 2016
Benjamin Pasero (@bpasero) Hmmmm, I disagree that this would be suitable for an extension. A function like this, to delete a file, should probably exist in the core editor. What kind of criteria are you typically using to determine suitability for an extension? Just curious, thanks!
If something can be done via extension, it should be done via extension. Once we add this functionality into the core product this extension is obsolete, but until then it is fine to have it. We currently have 595 feature requests and maybe 7 people working on the source code, so you can imagine that we are not jumping on every new feature someone asks for.
Benjamin Pasero (@bpasero) That makes sense -- so you would eventually plan on incorporating such features into the core product, but as a stop-gap measure, you want to use extensions, due to resource constraints. I understand, thanks.
I wish I could contribute code, but this isn't my area of expertise, so I'll have to contribute primarily through bug reports and feature requests. ✅
No confirmation but an undo popup might be a nicer UX, especially if it's difficult to trigger the delete by accident. Would probably have to move the file to a tmp directory in order to do this.
Activity
bpasero commentedon Mar 17, 2016
Sounds like a good example for an extension.
bgse commentedon Mar 17, 2016
Benjamin Pasero (@bpasero) Maybe label as help-wanted / effort-easy so we can find stuff like this better. Or even make a label 'extension-opportunity' or something.
[-]Feature Request: Add VSCode command to delete a file[/-][+]Provide a command to delete the currently opened file[/+]pcgeek86 commentedon Mar 17, 2016
Benjamin Pasero (@bpasero) Hmmmm, I disagree that this would be suitable for an extension. A function like this, to delete a file, should probably exist in the core editor. What kind of criteria are you typically using to determine suitability for an extension? Just curious, thanks!
bpasero commentedon Mar 17, 2016
If something can be done via extension, it should be done via extension. Once we add this functionality into the core product this extension is obsolete, but until then it is fine to have it. We currently have 595 feature requests and maybe 7 people working on the source code, so you can imagine that we are not jumping on every new feature someone asks for.
pcgeek86 commentedon Mar 18, 2016
Benjamin Pasero (@bpasero) That makes sense -- so you would eventually plan on incorporating such features into the core product, but as a stop-gap measure, you want to use extensions, due to resource constraints. I understand, thanks.
I wish I could contribute code, but this isn't my area of expertise, so I'll have to contribute primarily through bug reports and feature requests. ✅
martellaj commentedon Mar 25, 2016
Would you guys expect a confirmation dialog of any kind for this command? Like, "Are you sure you want to delete this file?" or no?
bgse commentedon Mar 25, 2016
Joe Martella (@martellaj) With destructive operations like delete, I'd say a confirmation dialog should be there.
pcgeek86 commentedon Mar 25, 2016
Hard to say ... on one hand, yeah I'd expect to have one, but on the other hand, modal dialogs are evil.
Tyriar commentedon Mar 25, 2016
No confirmation but an undo popup might be a nicer UX, especially if it's difficult to trigger the delete by accident. Would probably have to move the file to a tmp directory in order to do this.
bpasero commentedon Feb 27, 2017
Continues in #21344