fig icon indicating copy to clipboard operation
fig copied to clipboard

[🪱 BUG] Support of Remote Terminals in VSCode

Open oskar-gmerek opened this issue 11 months ago • 3 comments

Sanity checks

Feature Details

Description:

Currently, I have a setup consisting of an iMac, where I do most of my work, and a MacBook, where I keep the code I'm working on. I use VSCode Remote Tunnels to connect from the iMac to the MacBook. Additionally, both Macs have Fig installed.

The setup works well, but I've encountered an issue with Fig autocomplete. Since I'm working on the code on my MacBook while using the terminal on my iMac (connected via VSCode Remote Tunnels), when I trigger an autocomplete in the terminal, it appears in an unexpected location – not in the iMac's terminal, where I'm typing the command (cd, for example), but instead at the center of the MacBook's screen.

I believe this problem could potentially affect various other situations and tools used for remote work.

I expected there might be some challenges with Fig in such a setup, but I assumed it would mostly be related to having two instances of Fig running.

Feature Request: I would like to request an improvement to Fig's autocomplete functionality when working with remote terminals in VSCode. It would be immensely helpful if the autocomplete suggestions appeared in the terminal window where the command is being typed, rather than the remote machine's screen.

This improvement would streamline the workflow for remote development and enhance the overall user experience. As more and more developers are adopting remote work setups, I believe this enhancement would benefit a growing number of users.

Environment:

Operating System: macOS (iMac and MacBook) IDE: Visual Studio Code Terminal: VSCode Remote Tunnels Tool: Fig (with autocomplete feature) Reproducible Steps:

  1. Set up VSCode Remote Tunnels to connect from mac1 to mac2.
  2. Open a file in VSCode from the remote location (mac2).
  3. Use the terminal in VSCode on the mac1 to type a command that triggers autocomplete (e.g., cd ).

Current Behavior:

Autocomplete suggestions appear at the center of the remote machine's screen (mac2) instead of the local terminal in VSCode on the mac1 where terminal commands are typed .

Expected Behavior:

Autocomplete suggestions should appear directly within the terminal window on the mac1 where the command is being typed.

oskar-gmerek avatar Jul 29 '23 01:07 oskar-gmerek

Maybe related or partialy related to #1688

oskar-gmerek avatar Jul 30 '23 13:07 oskar-gmerek

Just asking, normally fig autocomplete positions itself correctly in your vscode window? A bash/zsh instance without tunneling works?

chaynabors avatar Aug 07 '23 22:08 chaynabors

@chaynabors Yes. On both devices everything works correctly without tunnelling.

On host device, is working correctly even during tunnelling. (when I physically type on host device)

I find out that sometimes (I do not know what change this behaviour) this autocomplete window is showing in "correct" position, but on the wrong device. This is not on the video, but I can also choose options in fig's windows via keyboard arrows/enter. But after enter for ex. I do not change the location on client's terminal, but the path is copied to it. (If needed, I can record another video with this behaviour)

https://github.com/withfig/fig/assets/53402105/412ca645-b0ed-4c04-95a6-47e6bea27c9c

oskar-gmerek avatar Aug 07 '23 23:08 oskar-gmerek