vscode-remote-release icon indicating copy to clipboard operation
vscode-remote-release copied to clipboard

remotePlatform notification is sometimes shown unnecessarily

Open akosyakov opened this issue 1 year ago • 2 comments

Is there an existing issue for this bug?

  • [X] I have searched the existing issues

Required Troubleshooting Steps

  • [X] I have followed these troubleshooting steps
  • [ ] I have tried both values of the remote.SSH.useLocalServer setting

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 avatar Jun 07 '24 12:06 akosyakov

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.

akosyakov avatar Jun 07 '24 12:06 akosyakov

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

roblourens avatar Jun 07 '24 16:06 roblourens

Hi @roblourens One question: Why does the Preference UI show useLocalServer as activated on Windows if as you are saying-- and I confirmed-- it is implicitly set to false. This led to a nightmarish debugging journey on our side.

jpfeuffer avatar Apr 08 '25 11:04 jpfeuffer