nicollasricas / vscode-deck

Enables Stream Deck integration with Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=nicollasr.vscode-streamdeck
MIT License
81 stars 11 forks source link

vscode.openFolder-Command not working #8

Closed KevGame closed 4 years ago

KevGame commented 4 years ago

Hello, I have a little problem with the "Execute Command"-module in your plugin for Elgato Stream Deck.

Short explaination: I use different profiles based on the program which is in the foreground. I want to open different folders (or projects) with one button. In a detailed research I found out in the api docs Visual Studio Code provides the command vscode.openFolder with the two arguments uri and newWindow. I tested some code but the folder won't open without any error message.

Do you have an idea what the problem is? I attached some screenshots to get a better view on that problem ;).

Thanks in advance!

Images: image image image

Software Version: Stream Deck: 4.7.0.12981 Firmware: 1.0.191203 Plugin: 4.1.3

nicollasricas commented 4 years ago

Hey,

Unfortunately, the "vscode.openFolder" command doesn't support JSON as arguments.

I could change the plugin to accept a string comma-separated values and parse it, but it won't work either since the path expected is URI and not a string.

I had investigated the source code and couldn't find a way to do this in a generic way that allows use in multiple cases.

I will add a new action just for this purpose.

nicollasricas commented 4 years ago

image

Will be released later today.

KevGame commented 4 years ago

Hi, I think a new action is a very good option to solve that problem. It is very usefull if I can switch the projects with one button on my Elgato Stream Deck. I will wait for the new update. Thank you very much for the quick help.

Have a nice day ;).

nicollasricas commented 4 years ago

Hey,

Just released the new update. You can download the latest version at Releases or wait until Elgato update on the stream deck store.