microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.67k stars 290 forks source link

remotePlatform notification is sometimes shown unnecessarily #9958

Open akosyakov opened 5 months ago

akosyakov commented 5 months ago

Is there an existing issue for this bug?

Required Troubleshooting Steps

Connect Locally

It connects successfully

->

No response

Expected Behavior

We configure remote platform using wildcard syntax in user settings to prevent the prompt on each connection. It works nicely, but on Windows a user still sees a following notification in the remote window:

You selected "linux" as the remote platform - this will be stored in the setting "remote.SSH.remotePlatform" and can be changed there if needed.

Although a user is not prompted anymore.

Steps To Reproduce

No response

Remote-SSH Log

Remote-SSH Log

``` [PASTE LOG HERE] ```

Anything else?

No response

akosyakov commented 5 months ago

I see although we use wildcards the machine gets added explicitly to the settings. It is not very nice because user settings keep growing. It only manifests on Windows, I don't observe the same on Mac. And only via Remote SSH, if it is devcontainer over SSH then there is only annoying notification, settings are not updated.

roblourens commented 5 months ago

On Windows, remote.SSH.useLocalServer is implicitly false. You can set it to true in settings.json to prevent this.