Skip to content

terminal.integrated.suggest with Remote - SSH suggests host directories #249896

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

Open
P-Lng opened this issue May 27, 2025 · 1 comment
Open

terminal.integrated.suggest with Remote - SSH suggests host directories #249896

P-Lng opened this issue May 27, 2025 · 1 comment
Assignees

Comments

@P-Lng
Copy link

P-Lng commented May 27, 2025

Type: Bug

Connecting to a Linux remote from a Windows host with terminal.integrated.suggest enabled.

When typing cd / in the Linux terminal, it suggests directories from my Windows host instead of the Linux remote:

Image


VS Code version: Code - Insiders 1.101.0-insider (9bb394b, 2025-05-27T06:34:19.809Z)
OS version: Windows_NT x64 10.0.26100
Modes:
Remote OS version: Linux x64 5.15.167.4-microsoft-standard-WSL2

@P-Lng
Copy link
Author

P-Lng commented May 28, 2025

Not sure if this is related, let me know if I should create a separate ticket:
file links in a remote source file also seem to be interpreted as links to the host file system.

It works as expected in the Terminal, Ctrl+clicking on /tmp/test.txt opens that file on the remote target.

In a remote source file, this link # file:///tmp/test.txt fails with
Image

This link # file:///C:/Temp/test.txt works, but opens the the Windows file from the host.

Full example file on remote:

# Works, but opens file on Windows host:
# file:///C:/Temp/test.txt

# Does not work:
# file:///tmp/test.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants