dance
dance copied to clipboard
Improve support when used with remote development (e.g. "Remote - SSH")
Thanks for the wonderful extension.
When using VS Code's "Remote - SSH" extension on a remote server with some latency, Dance causes key presses to lag and multiple quick key presses to be ignored. This appears to be because the extension is not setup to run in the local UI instance like for example the VIM extension.
https://code.visualstudio.com/api/advanced-topics/remote-extensions describes setting a "extensionKind": ["ui", "workspace"]
property in package.json. I am not familiar enough with this extension's internals or the VS Code extension API to know if this would work out of the box.
Oh, that's a good point. The only issue is that some commands (the ones that use pipes) must run on the workspace, whereas most commands run in the UI. For now I think losing these few commands is an acceptable tradeoff. Have you tried forcing the extension to run locally?
Thanks for the quick response. Just tried it and it worked for me.
Commands worked for me too but they ran on the local host instead of the container (not ideal but still better than no commands).
It is not clear to me that other remote users will want this running in the UI (e.g. "Remote - Containers" and "Remote - WSL" might prefer it running in the workspace).