salesforcedx-vscode icon indicating copy to clipboard operation
salesforcedx-vscode copied to clipboard

Create static resource command

Open atnmorrison opened this issue 6 years ago • 4 comments

I would like to be able to create static resources within vs code. There are commands for most components but this one is missing. In lightning if we're developing a js library for our components it would make things much easier.

Even better would be if it could support zip files and automatically zip and push the static resources zipped while being able to easily edit in the editor

atnmorrison avatar Jun 08 '18 15:06 atnmorrison

seems like the ability to handle zipped static resources is already there, only thing missing is being able to create a new static resource without having to manually create it in the scratch org and pull it down

atnmorrison avatar Jun 08 '18 16:06 atnmorrison

I believe this has been delivered. Am I wrong? @smaddox-sf

dschach avatar Mar 10 '22 07:03 dschach

@AnanyaJha @atnmorrison Is this issue still relevant? If not can we close it?

mohanraj-r avatar Mar 15 '22 15:03 mohanraj-r

We still need this, in the following form :

  • right click on a ".../staticresources" folder : display menu "SFDX: create new static resource", ask for the name of the resource to be create, and call 'sfdx force:staticresource:create -MyStaticResource'
  • command palette : add the "SFDX: create new static resource" command

cc @dschach @smaddox-sf @mohanraj-r

RupertBarrow avatar Jul 01 '22 09:07 RupertBarrow

Hi @atnmorrison @RupertBarrow - checking in to see if this is still functionality y'all are looking for? Thanks so much, this'll help with prioritizing our future work!

AnanyaJha avatar Feb 24 '24 00:02 AnanyaJha

Yes. Being able to create, essentially, a folder in the CLI that I can put javascript or image files into is definitely something that would be easier to do via CLI than via making something in the scratch org and retrieving it.

dschach avatar Feb 24 '24 01:02 dschach