mjcrouch / vscode-perforce

Perforce commands for Visual Studio Code
MIT License
63 stars 50 forks source link

Delete empty changelists #187

Open unwiredben opened 4 years ago

unwiredben commented 4 years ago

I'd like a menu item to delete a changelist that has no files shelved or locally changed. In my workflow, I often commit changes from Swarm, then have to go and delete the local changelist, and right now, this requires me to delete the CL from the command line after remembering it's CL number from the VSCode window.

mjcrouch commented 4 years ago

Hi, if you use the revert changelist command it also attempts to delete the changelist at the same time Though this can fail if there are jobs attached or shelved files for example.

This was inherited from the original extension - I do think it could be more clear, for example if the changelist is empty we could change revert changelist to delete changelist..

P.s I also added the "copy changelist number" command very recently to make remembering the changelist number easier ;)

unwiredben commented 4 years ago

I didn't know that! I'll try that out next time.