feat(vscode): Stream Deck controller support (follow-focus + relay verbs)#1105
Open
amrmelsayed wants to merge 1 commit into
Open
feat(vscode): Stream Deck controller support (follow-focus + relay verbs)#1105amrmelsayed wants to merge 1 commit into
amrmelsayed wants to merge 1 commit into
Conversation
…rbs)
The extension-side changes that let the Codev Stream Deck plugin work. Everything
here is inert without a Stream Deck: the follow-focus code is gated behind
codev.streamdeck.followFocus (default off), and the relay verbs only run when a
controller sends them. No new dependencies; the plugin package lands separately.
- Command relay allowlist (command-relay.ts): add 'focus-workspace' ->
codev.focusWorkspaceWindow and 'scroll' -> editorScroll.
- focus-workspace command (extension.ts): vscode.openFolder(uri,{forceNewWindow:true})
focuses the workspace's existing window (controller -> VSCode), fork-agnostic.
- Follow-focus module (streamdeck-focus-sync.ts, new): a PASSIVE deep link
(streamdeck=hidden, never foregrounds the app) announcing the focused workspace
and the active builder; gives up + warns once if there's no handler. Opt-in
setting added to package.json.
- Builder follow (extension.ts + terminal-manager.ts): announce the active builder
from a focused builder diff, the builder terminal (getActiveBuilderId), or a
Codev-sidebar row selection — keyed on the builder id.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The extension-side changes that let the Codev Stream Deck plugin work. The command-relay substrate landed earlier (#1091); this PR is the consumer half that lives in the VS Code extension. The plugin package itself lands separately.
~178 lines, 5 files, all in
packages/vscode. Nocore/types/Tower changes, no new dependencies, no lockfile churn.Why it's safe to land on its own
Every bit is inert without a Stream Deck:
codev.streamdeck.followFocus(default off), so it never fires astreamdeck://URL unless you opt in;Non-Stream-Deck users see zero behavior change.
Changes
src/streamdeck-focus-sync.ts(new)streamdeck=hidden, never foregrounds the app) announcing the focused workspace and the active builder; gives up + warns once if there's no handler.src/extension.tscodev.focusWorkspaceWindowcommand (vscode.openFolder(uri,{forceNewWindow:true})to focus a workspace's existing window — fork-agnostic).src/terminal-manager.tsgetActiveBuilderId()— maps the focused builder terminal to its builder id.src/command-relay.tsfocus-workspace->codev.focusWorkspaceWindow,scroll->editorScroll.package.jsoncodev.streamdeck.followFocussetting (defaultfalse).Feature groups
scrollverb maps to the built-ineditorScroll.Verification
check-types+lintpass (identical files were verified on the source branch;mainis undiverged inpackages/vscode).