Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support running in vscode.dev #13

Open
5 tasks
Tracked by #1023
pokey opened this issue Oct 10, 2022 · 0 comments
Open
5 tasks
Tracked by #1023

Support running in vscode.dev #13

pokey opened this issue Oct 10, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@pokey
Copy link
Owner

pokey commented Oct 10, 2022

In order to make it easier for people to use Talon for development, we'd like to support the command server when VSCode is running in a web browser. The approach is roughly as follows:

  • Leverage Rango's RPC to inject a payload into the window object
  • Inject a function onto the window object that the command server can use to send a response payload. Could possibly leverage some code Rango used to have for modifying the window object. See also this SO post
  • Issue a keypress from Talon to tell the command server to read from the window object
  • Read from the window object in the command server extension and run the command like usual
  • Send the response back via the injected callback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant