microsoft / vscode-vsce

VS Code Extension Manager
https://code.visualstudio.com/
Other
794 stars 198 forks source link

Support pattern in vsce commands #1012

Open jdneo opened 2 months ago

jdneo commented 2 months ago

Now, the vsce command like tool only support to specify the accurate file name to do tasks like publish.

vsce publish -i extension.vsix

I hope pattern match can be supported, like

vsce publish -i *.vsix
benibenj commented 2 months ago

Could you provide a bit more context on why this would be helpful in your case?

jdneo commented 2 months ago

Hi @benibenj,

In CI/CD pipelines, we run several commands towards vsce. Basically package, generate-manifest, publish.

If the command do not specify the output file name, the vsix file name will include the version number, which is dynamic. Things gets a little bit more complicated when it comes to the pre-release.

then it's not easy to specify the input file name for the following action like publish.

Though the problem can be addressed to add -o extension.vsix when packaging, but then I cannot easily see the version number, publisher and extension name from the file name.