Git Product home page Git Product logo

vscode-deck's Introduction

Stream Deck for Visual Studio Code

Features

  • Execute any Visual Studio Code command or menu.
  • Create and execute terminal commands.
  • Insert snippets.

Getting Started

  1. Download Visual Studio Code plugin on Stream Deck Store or here.
  2. Download Stream Deck for Visual Studio Code on Visual Studio Code marketplace or here.

After installing the plugin and the extension you should see this in VSCode status bar:

Connected to Stream Deck

If for some reason the focused instance, were not active click on the status bar or alternate between windows to force activation.

Only the active session will receive the commands.

If you are connected remotely through SSH, you should add a forward into your SSH config.

RemoteForward 48969 127.0.0.1:48969

Thanks to rettgerst for pointing this out here.

Getting Commands ID

In Visual Studio Code open File->Preferences->Keyboard Shortcuts, find the command you want, right-click it and Copy Command Id.

Settings (Optional)

You can change the IP and port to the message server in the settings.ini file.

[general]
host=127.0.0.1
port=48969

Windows

%appdata%\Elgato\StreamDeck\Plugins\com.nicollasr.streamdeckvsc.sdPlugin\settings.ini

Mac

~/Library/Application Support/com.elgato.StreamDeck/Plugins/com.nicollasr.streamdeckvsc.mac.sdPlugin/settings.ini

If you changed the server port, don't forget to change it in Visual Studio Code settings or you won't be able to connect and use the available features.

I recommend using 127.0.0.1 as your IP address instead of localhost.

Windows WSL2

  1. It is important that %appdata%\Elgato\StreamDeck\Plugins\com.nicollasr.streamdeckvsc.sdPlugin\settings.ini is listening on 0.0.0.0:
[general]
host=0.0.0.0
port=48969
  1. Next, configure ~/.vscode-server/data/Machine/settings.json to the IP address of the Win10 host, as identified by ipconfig /all from a CMD Prompt - e.g.:
{
    "streamdeck.serverHost": "192.168.0.25"
}

vscode-deck's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vscode-deck's Issues

FR: Select Terminal for command to run in

Would it be possible to add a feature to select what terminal the command should be run in? I have my react-native packager in one terminal and then I have another for other commands. I would like to run packager specific commands in the packager terminal and other commands in another terminal. I would imagine you select the terminal by the index in the terminal dropdown.

Thanks!

Feature Request: Deactivate StreamDeck / Project Selection via Port

Thank you for great project!
This brought my programming experience to a higher level.

I'm a deep learning researcher, and I open several projects at once at the same time.
The problem here is that every time I run Debug, debugging goes on all projects simultaneously.
This is a terrible thing.
Therefore, the functions I want are as follows.

  • function to specify Project
  • function to temporarily disable StreamDeck in a project.

Simple solutions may include:

  • Assign {projectName:Port} for each project
  • (VSCode) cmd (ctrl) + Shift + P > Stream Deck : Select Project (Port)
    or
  • (VSCode) cmd (ctrl) + Shift + P > Stream Deck : Deactivate

What do you think about this idea?
Thank you!

Feature Request: Context Aware actions

It would be really really cool if the buttons could be made context aware... For instance, I'd love to have commands that only fire if the language is PowerShell. Something akin to the Keyboard shortcuts that change based on the state:
image

Running a task from tasks.json

Is there a way to run a task from tasks.json? Not the default run/build task, but rather one like "MyTask" in the example below:

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "MyTask",
            "type": "shell",
            "command": "${workspaceFolder}/mytask.bat",
            "problemMatcher": [],
            "group": "build",
            "args": [
                "--only-update",
                "${input:package}",
            ]
        },
}

Document WebSocket messages

Hey!

I am trying to develop a client for this extension for use with Bitfocus Companion, but I am not sure how the WebSocket is designed.

It would be awesome if all messages, properties, headers, etc. could be documented to allow for other people to create clients more easily.

More Documentation on how to use properly

Hi,

I just started to try and use this because it sounds awesome but the first thing I wanted to do, I couldn't make happen because I have no idea how we're suposed to even do it.

Which is why I'm suggesting the how to section of your readme could be updated a little.

I was mainly looking into starting specific debugging session using workbench.action.debug.selectandstart but it still ask for which I want to start. That makes it pretty useless. I get that I should probably add the json and the argument but I've tried a few things and none seems to do anything at all.

How do we find the JSON arguments for the different commands, if there is any. Is that documented somewhere?

Execute Terminal Command - command disappearing

I have a similar problem to this issue
When I set a trivial command like ls:
Screen Shot 2020-05-01 at 3 19 37 PM
it disappears once I change the focus to another button:
Screen Shot 2020-05-01 at 3 20 33 PM

VSCode Version:
Screen Shot 2020-05-01 at 3 29 45 PM

Settings/General:
Screen Shot 2020-05-01 at 3 28 13 PM

This is the output of the log:

cat pluginlog.log
2020-05-01 15:00:00.2534|DEBUG|BarRaider.SdTools.Logger|Logger Initialized
2020-05-01 15:00:00.5737|INFO|BarRaider.SdTools.Logger|Starting server ws://127.0.0.1:48969
2020-05-01 15:00:00.8632|INFO|BarRaider.SdTools.Logger|Plugin Loading - 5 Actions Found
2020-05-01 15:00:02.5900|INFO|BarRaider.SdTools.Logger|Plugin version: 4.1.2
2020-05-01 15:00:02.5900|INFO|BarRaider.SdTools.Logger|Connecting to Stream Deck
2020-05-01 15:00:02.7937|INFO|BarRaider.SdTools.Logger|Connected to Stream Deck
2020-05-01 15:00:02.7950|INFO|BarRaider.SdTools.Logger|GlobalSettingsManager initialized
2020-05-01 15:01:30.8226|INFO|BarRaider.SdTools.Logger|{"id":"ChangeActiveSessionMessage","data":"{\"sessionId\":\"cc1b0171-7bfd-4498-8f9f-86513841a5b01588300437478\"}"}
2020-05-01 15:02:10.8425|INFO|BarRaider.SdTools.Logger|{"id":"ChangeActiveSessionMessage","data":"{\"sessionId\":\"cc1b0171-7bfd-4498-8f9f-86513841a5b01588300437478\"}"}
2020-05-01 15:11:57.1602|INFO|BarRaider.SdTools.Logger|{"id":"ChangeActiveSessionMessage","data":"{\"sessionId\":\"156b88d9-1d70-42cc-9009-e13e0deb13571588360310816\"}"}
2020-05-01 15:15:00.5287|INFO|BarRaider.SdTools.Logger|{"id":"ChangeActiveSessionMessage","data":"{\"sessionId\":\"156b88d9-1d70-42cc-9009-e13e0deb13571588360310816\"}"}
2020-05-01 15:15:50.7569|INFO|BarRaider.SdTools.Logger|{"id":"ChangeActiveSessionMessage","data":"{\"sessionId\":\"156b88d9-1d70-42cc-9009-e13e0deb13571588360310816\"}"}

Automatically set to active mode

Hey, can we do something like (Automatically set to active mode)

When I click Visual Studio, it would open visual studio->open a folder->open a terminal inside this folder

But because of (Connected) mode, it can't do it, Until I switch tabs, or click on the extention.

How can I do it without clicking? Maybe we need some check button, to automatically activate the deck

Remote SSH development breaks extension

When using the remote plugin, the stream deck extension can not connect to the stream deck itself.

There should be a way to mark this extension as local only so it runs on the computer, not over the SSH connection.

Supporting VS Code remote

Thanks for your plugin, it is working perfectly in local projects.

Do you plan to support remote hosts as well (SSH ie)?

When I open a project which is remote, it is unable to connect.

image

I could see that the plugin has to be installed on the remote host as well.
image

I am wondering why this even is necessary, as the only communication is between the local running VSCode and Streamdeck application to send some commands.

Cannot load 4.1.6

Hi @nicollasricas ๐Ÿ‘‹๐Ÿผ

When I use version 4.1.6 it of the extension it doesn't load at all, I cannot activate either reconnect the stream deck to my VS code instance. Downgrading to 4.1.5 helped getting the Deck | Connected | Active visible in the status bar again.

Is there any way I can help you getting a stable version?

Not connecting when vscode is running on WSL

Streamdeck will not connect or activate when I am working on WSL vscode. It works fine when I run vscode locally on windows.

The stream deck output just spams
Connecting to Stream Deck Disconnected from Stream Deck.

SharedScreenshot

It would be great to get this working, your app is very useful!

No Active - No Connected

I previously submitted an issue similar to this here

This time, when starting up Visual Studio Code, it states: Deck | Connecting but unlike before it does not change to Deck | Connected
Screen Shot 2020-06-08 at 1 51 10 AM

The main issue this time based on the Debug Output I shared below is that the websocket is not open:

[ERROR] WebSocket is not open: readyState 0 (CONNECTING), Stack: Error: WebSocket is not open: readyState 0 (CONNECTING)

Below I am sharing all what I have:

Wich OS are you using?

macOS

What plugin version are you using (stream deck side)?

5.1.2
Screen Shot 2020-06-08 at 1 53 34 AM

What extension version you have installed? (vscode side)?

4.1.5
Screen Shot 2020-06-08 at 1 49 42 AM

What are extension settings? (vscode side)?

Screen Shot 2020-06-08 at 1 57 09 AM

What are extension settings? (settings.ini side)?

Screen Shot 2020-06-08 at 1 56 11 AM
Kindly take note that like previously, I had to recreate it as you explained here

Debug Output

[6/8/2020, 1:42:40 AM] Connecting to Stream Deck
[6/8/2020, 1:42:40 AM] Registering session e5564f1a-003f-41bf-be74-0b4ee7a72b871591594958666
[6/8/2020, 1:42:44 AM] Disconnected from Stream Deck.
[6/8/2020, 1:42:44 AM] Connecting to Stream Deck
[6/8/2020, 1:46:00 AM] Activation requested to e5564f1a-003f-41bf-be74-0b4ee7a72b871591594958666
[ERROR] WebSocket is not open: readyState 0 (CONNECTING), Stack: Error: WebSocket is not open: readyState 0 (CONNECTING)
	at WebSocket.send (/Users/kevinjohnson/.vscode-insiders/extensions/nicollasr.vscode-streamdeck-4.1.5/node_modules/ws/lib/websocket.js:328:13)
	at ExtensionHub.send (/Users/kevinjohnson/.vscode-insiders/extensions/nicollasr.vscode-streamdeck-4.1.5/out/extensionHub.js:32:25)
	at ExtensionController.changeActiveSession (/Users/kevinjohnson/.vscode-insiders/extensions/nicollasr.vscode-streamdeck-4.1.5/out/extensionController.js:77:18)
	at /Users/kevinjohnson/.vscode-insiders/extensions/nicollasr.vscode-streamdeck-4.1.5/out/extension.js:53:33
	at e._executeContributedCommand (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:639:863)
	at e.$executeContributedCommand (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:640:217)
	at e._doInvokeHandler (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:804:1013)
	at e._invokeHandler (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:804:705)
	at e._receiveRequest (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:803:344)
	at e._receiveOneMessage (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:802:156)
	at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:800:416
	at e.fire (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46:222)
	at v.fire (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:239:274)
	at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:975:649
	at e.fire (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46:222)
	at v.fire (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:239:274)
	at t.PersistentProtocol._receiveMessage (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:243:629)
	at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:240:824
	at e.fire (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46:222)
	at p.acceptChunk (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:236:737)
	at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:236:89
	at Socket.t (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:245:185)
	at Socket.emit (events.js:203:13)
	at addChunk (_stream_readable.js:295:12)
	at readableAddChunk (_stream_readable.js:276:11)
	at Socket.Readable.push (_stream_readable.js:210:10)
	at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)
[6/8/2020, 1:46:01 AM] Activation requested to e5564f1a-003f-41bf-be74-0b4ee7a72b871591594958666
[ERROR] WebSocket is not open: readyState 0 (CONNECTING), Stack: Error: WebSocket is not open: readyState 0 (CONNECTING)
	at WebSocket.send (/Users/kevinjohnson/.vscode-insiders/extensions/nicollasr.vscode-streamdeck-4.1.5/node_modules/ws/lib/websocket.js:328:13)
	at ExtensionHub.send (/Users/kevinjohnson/.vscode-insiders/extensions/nicollasr.vscode-streamdeck-4.1.5/out/extensionHub.js:32:25)
	at ExtensionController.changeActiveSession (/Users/kevinjohnson/.vscode-insiders/extensions/nicollasr.vscode-streamdeck-4.1.5/out/extensionController.js:77:18)
	at /Users/kevinjohnson/.vscode-insiders/extensions/nicollasr.vscode-streamdeck-4.1.5/out/extension.js:53:33
	at e._executeContributedCommand (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:639:863)
	at e.$executeContributedCommand (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:640:217)
	at e._doInvokeHandler (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:804:1013)
	at e._invokeHandler (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:804:705)
	at e._receiveRequest (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:803:344)
	at e._receiveOneMessage (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:802:156)
	at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:800:416
	at e.fire (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46:222)
	at v.fire (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:239:274)
	at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:975:649
	at e.fire (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46:222)
	at v.fire (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:239:274)
	at t.PersistentProtocol._receiveMessage (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:243:629)
	at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:240:824
	at e.fire (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46:222)
	at p.acceptChunk (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:236:737)
	at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:236:89
	at Socket.t (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:245:185)
	at Socket.emit (events.js:203:13)
	at addChunk (_stream_readable.js:295:12)
	at readableAddChunk (_stream_readable.js:276:11)
	at Socket.Readable.push (_stream_readable.js:210:10)
	at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)
[6/8/2020, 1:46:01 AM] Activation requested to e5564f1a-003f-41bf-be74-0b4ee7a72b871591594958666
[ERROR] WebSocket is not open: readyState 0 (CONNECTING), Stack: Error: WebSocket is not open: readyState 0 (CONNECTING)
	at WebSocket.send (/Users/kevinjohnson/.vscode-insiders/extensions/nicollasr.vscode-streamdeck-4.1.5/node_modules/ws/lib/websocket.js:328:13)
	at ExtensionHub.send (/Users/kevinjohnson/.vscode-insiders/extensions/nicollasr.vscode-streamdeck-4.1.5/out/extensionHub.js:32:25)
	at ExtensionController.changeActiveSession (/Users/kevinjohnson/.vscode-insiders/extensions/nicollasr.vscode-streamdeck-4.1.5/out/extensionController.js:77:18)
	at /Users/kevinjohnson/.vscode-insiders/extensions/nicollasr.vscode-streamdeck-4.1.5/out/extension.js:53:33
	at e._executeContributedCommand (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:639:863)
	at e.$executeContributedCommand (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:640:217)
	at e._doInvokeHandler (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:804:1013)
	at e._invokeHandler (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:804:705)
	at e._receiveRequest (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:803:344)
	at e._receiveOneMessage (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:802:156)
	at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:800:416
	at e.fire (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46:222)
	at v.fire (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:239:274)
	at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:975:649
	at e.fire (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46:222)
	at v.fire (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:239:274)
	at t.PersistentProtocol._receiveMessage (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:243:629)
	at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:240:824
	at e.fire (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46:222)
	at p.acceptChunk (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:236:737)
	at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:236:89
	at Socket.t (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:245:185)
	at Socket.emit (events.js:203:13)
	at addChunk (_stream_readable.js:295:12)
	at readableAddChunk (_stream_readable.js:276:11)
	at Socket.Readable.push (_stream_readable.js:210:10)
	at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)
[6/8/2020, 1:46:01 AM] Activation requested to e5564f1a-003f-41bf-be74-0b4ee7a72b871591594958666
[ERROR] WebSocket is not open: readyState 0 (CONNECTING), Stack: Error: WebSocket is not open: readyState 0 (CONNECTING)
	at WebSocket.send (/Users/kevinjohnson/.vscode-insiders/extensions/nicollasr.vscode-streamdeck-4.1.5/node_modules/ws/lib/websocket.js:328:13)
	at ExtensionHub.send (/Users/kevinjohnson/.vscode-insiders/extensions/nicollasr.vscode-streamdeck-4.1.5/out/extensionHub.js:32:25)
	at ExtensionController.changeActiveSession (/Users/kevinjohnson/.vscode-insiders/extensions/nicollasr.vscode-streamdeck-4.1.5/out/extensionController.js:77:18)
	at /Users/kevinjohnson/.vscode-insiders/extensions/nicollasr.vscode-streamdeck-4.1.5/out/extension.js:53:33
	at e._executeContributedCommand (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:639:863)
	at e.$executeContributedCommand (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:640:217)
	at e._doInvokeHandler (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:804:1013)
	at e._invokeHandler (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:804:705)
	at e._receiveRequest (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:803:344)
	at e._receiveOneMessage (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:802:156)
	at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:800:416
	at e.fire (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46:222)
	at v.fire (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:239:274)
	at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:975:649
	at e.fire (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46:222)
	at v.fire (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:239:274)
	at t.PersistentProtocol._receiveMessage (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:243:629)
	at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:240:824
	at e.fire (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46:222)
	at p.acceptChunk (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:236:737)
	at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:236:89
	at Socket.t (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:245:185)
	at Socket.emit (events.js:203:13)
	at addChunk (_stream_readable.js:295:12)
	at readableAddChunk (_stream_readable.js:276:11)
	at Socket.Readable.push (_stream_readable.js:210:10)
	at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)
[6/8/2020, 1:46:01 AM] Disconnected from Stream Deck.
[6/8/2020, 1:46:01 AM] Connecting to Stream Deck

Not connecting

Hi,

I'm trying to use the extension in my Visual Code, but it's not connecting. The status bar shows "Deck | Connecting".

I'm using Visual Studio Code 1.74.3 on Mac.
Version of your extension is v4.1.6

StreamDeck v6.0.2
Plugin v5.1.3

I'm working locally (no SSH)

I don't see any error in the JS Console.
Looking at the Output for StreamDeck in VS, I see it constantly connecting and disconnecting:

[2/2/2023, 1:49:10 PM] Connecting to Stream Deck
[2/2/2023, 1:49:10 PM] Registering session 23707a89-7aff-460c-ae65-1a5388ab26841675345749453
[2/2/2023, 1:49:10 PM] Disconnected from Stream Deck. Reconnecting in 5 seconds.
[2/2/2023, 1:49:11 PM] Configuration changed, restarting...
[2/2/2023, 1:49:11 PM] Connecting to Stream Deck
[2/2/2023, 1:49:11 PM] Disconnected from Stream Deck. Reconnecting in 5 seconds.
[2/2/2023, 1:49:11 PM] Activation requested to 23707a89-7aff-460c-ae65-1a5388ab26841675345749453
[2/2/2023, 1:49:15 PM] Connecting to Stream Deck
[2/2/2023, 1:49:15 PM] Disconnected from Stream Deck. Reconnecting in 5 seconds.
[2/2/2023, 1:49:16 PM] Connecting to Stream Deck
[2/2/2023, 1:49:16 PM] Disconnected from Stream Deck. Reconnecting in 5 seconds.
[2/2/2023, 1:49:20 PM] Connecting to Stream Deck
[2/2/2023, 1:49:20 PM] Disconnected from Stream Deck. Reconnecting in 5 seconds.
[2/2/2023, 1:49:21 PM] Connecting to Stream Deck
[2/2/2023, 1:49:21 PM] Disconnected from Stream Deck. Reconnecting in 5 seconds.
[2/2/2023, 1:49:25 PM] Connecting to Stream Deck
[2/2/2023, 1:49:25 PM] Disconnected from Stream Deck. Reconnecting in 5 seconds.
[2/2/2023, 1:49:26 PM] Connecting to Stream Deck
[2/2/2023, 1:49:26 PM] Disconnected from Stream Deck. Reconnecting in 5 seconds.
[2/2/2023, 1:49:30 PM] Connecting to Stream Deck
[2/2/2023, 1:49:30 PM] Disconnected from Stream Deck. Reconnecting in 5 seconds.
[2/2/2023, 1:49:31 PM] Connecting to Stream Deck
[2/2/2023, 1:49:31 PM] Disconnected from Stream Deck. Reconnecting in 5 seconds.
[2/2/2023, 1:49:35 PM] Connecting to Stream Deck
[2/2/2023, 1:49:35 PM] Disconnected from Stream Deck. Reconnecting in 5 seconds.
[2/2/2023, 1:49:36 PM] Connecting to Stream Deck

Any idea?

vscode.openFolder-Command not working

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

Passing Arguments Unclear

Trying to execute workbench.action.editor.changeLanguageMode and pass in the language to create language specific actions on Stream Deck.

Tried the following patterns:
workbench.action.editor.changeLanguageMode(yaml)
workbench.action.editor.changeLanguageMode('yaml')
workbench.action.editor.changeLanguageMode('(yaml)')

Would it be possible to update the README to include examples for the Execute Command task with a few patterns displaying how to pass arguments to commands?

Send terminal command without enter

I have a few commands i'd like to use as 'template' that I would fill the last argument, is it possible to just send the command without pressing enter at the end?

Thanks!

How to create custom triggers?

I have been looking into BetterTouchTool to control my stream deck instead of the Native Stream Deck software. I'm wondering if it would be possible to document and expose an endpoint such that I could send commands directly to the VSCode extension via URL or similar, so it could be triggered outside of the stream deck plugin.\

It looks like you're using websockets so maybe this isn't an easy ask, but I'd be curious if you have other ideas for this use case.

This plugin is a zombie that cannot be killed.

After being uninstalled it still starts again with Streamdeck.
I tried reinstall and then immediately uninstalled, after that it looked like it's gone, not running. Then after Streamdeck self-update the process appeared again.
On top of everything it's only Intel architecture.

image

Run or rerun npm script

I often use the npm script panel to run or rerun the tasks in my projects. The current plugin can create a new terminal and execute a command, although if the task was already running, it will run a new instance in parallel rather then restart.

I tried using execute command with workbench.action.tasks.runTask, although this opens a dialog asking which task to run and I cannot provide arguments. npm.runScript could be a solution, but it doesn't do anything.

Options I can think of:

  • Modify the current create terminal command to create or kill and recreate the terminal if already created by name.
  • Add an execute npm command that would restart if necessary.

What is the optimal solution for running/rerunning tasks? The use case would be to rerun tasks with the editor in the background.

Getting started

Maybe it's me but i find it hard to get started using this.

Like for example:
%appdata%\Elgato\StreamDeck\Plugins\com.nicollasr.streamdeckvsc.sdPlugin\appsettings.json
does not exist. Do I have to create it?

Could you eleborate on how to get going?

Feature Request: Ability to Popout Terminal

VSCode allows you to move terminals to a new window, something I use frequently. I would love this ability when creating a terminal so I can include moving it as part of my multi-action :)

Is it possible to use this extension with Touch Portal?

Touch Portal is an iOS/Android app that allows you to re-purpose an old phone or tablet into a stream deck. It makes a great cheap alternative to the Elgato Stream Deck (16 buttons for free, or up to 110 per page if you purchase the app).

Because Touch Portal supports HTTP POST and GET actions, I wondered whether it would be possible to get it to talk to this extension? I'm assuming the extension just accepts JSON formatted requests on the configured address & port, but there is nothing in the readme that relates to the expected message format.

Any advice would be appreciated :)

Never becoming active

I've followed the steps in the readme, but my plugin never reaches the 'active' state and therefore the Stream Deck commands don't work. I've changed windows, restarted and reloaded VS Code, hardcoded the settings to the correct port, and ran the Activate command for the Stream Deck extension. I'm running VS code on:

Version: 1.51.1
Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Darwin x64 18.7.0

and the latest stream deck software.

Any ways to resolve this?

Feature Request: Support WSL2 paths for Open Folder

As the title says. I don't want to use the network path because then it doesn't run vs code within WSL. From powershell, you can run this command to do it: code -n --folder-uri=vscode-remote://wsl+Ubuntu/home/meenie/dev-project

CPU use spikes when any property inspectors are loaded

Once I've opened any property inspectors, the whole streamdeck application slows to a crawl. If I change profiles to one without any VSCode plugins & try to add actions for unrelated plugins (like, say, Text or Open under System), the application still chews up CPU and runs poorly. If I have the app open, with no VSCode actions, and use VSCode, the app is fine. If I use VSCode for a bit and then modify/add actions that aren't VSCode actions, the app is fine. Once I've gotten myself into the "chew up CPU when using the app" state, restarting fixes it (as long as I don't load any VSCode plugins). Other applications, such as VSCode itself, remain unaffected.

So there's definitely something weird happening with the property inspector(s) on my machine. I didn't see anything of interest in the streamdeck logs, nor in the logs in the VSCode plugin folder. Both pluginlog.log and logs/log000.log primarily contain a bunch of ChangeActiveSessionMessage logs. pluginlog.log does contain a couple Error: Address already in use logs, if those seem relevant.

The VSCode Stream Deck output shows it connecting & disconnecting multiple times per second (with no additional output), which doesn't seem great. I was able to get the actions to work at one point, but currently they're all just giving me alerts.

I'm on StreamDeck 4.9.3 (13222), firmware 1.0.191203, MacOS Catalina 10.15.7.

Minimap Toggle command deactivates plugin for window

Hi, found this strange issue where using the execute command button to execute editor.action.toggleMinimap deactivates the current window. I have four other buttons that I use that work. Attached is a gif showing the issue.

minimap_toggle_disconnectes_deck

"Execute Command" help to fill Arguments (JSON) for SSH connection label:"help wanted"

I would like to press a button in my stream deck to:

  1. Open visual studio code
  2. Connecto to my raspberry through SSH connection

I follow the instructions and my visual studio code and stream deck are linked!
I also find the Command ID: "oopensshremotes.openEmptyWindowInCurrentWindow"
It works but I have to insert all information like user and ip/host and password. (So I thought that using Arguments (JSON) I can fill automatically all the fields).
I read this link and maybe this part can help me... but I'm not good to solve my problem:

Host remotehost.yourcompany.com
    User yourname
    HostName another-host-fqdn-or-ip-goes-here
    IdentityFile ~/.ssh/id_rsa-remote-ssh

Someone can help me? Thanks

No "Active"

I have only one window open. When starting up Visual Studio Code, it states: Deck | Connecting and shortly afterwards it changes to Deck | Connected
It never states Active regardless as to me restarting Visual Studio Code several times or me opening several windows and cycling through them using tab.

Screen Shot 2020-05-01 at 4 30 09 PM

You may find all relevant information about my system etc as posted in this issue

connect to specified ssh host

Hey, is there a way of passing arguments to open a specific ssh host? I know I can command id opensshremotes.openEmptyWindowInCurrentWindow which brings up the list of configured hosts, but I would like the be able to pass the hostname and the same for opening container with remote-containers.attachToRunningContainer which again opens the list

High Code Helper (Renderer) CPU Utilization

On macOS BigSur (11.1) running the current version of Visual Studio Code (1.52), if the StreamDeck is not connected to the Mac (M1 Air), the Code Helper (Renderer) process begins to idle at 95%. If you disable the Stream Deck for Visual Studio Code (v4.1.5) extension, the CPU for this process immediately drops to 0.

Usage on MacOS

Hi there,

Thanks for the awesome plugin for VSCode, Can you tell me how to enable this in MacOS?

Thanks,
Ramon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.