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.63k stars 282 forks source link

Multiple VSCode run on remote server opens only on first user #1992

Closed lucaRRRdev closed 4 years ago

lucaRRRdev commented 4 years ago

Issue Type: Bug

When 2 users are connected with Remote Desktop on a remote server, if one user runs VSCode, the second user cannot use it: it will open VSCode in the first user's session!

VS Code version: Code 1.40.2 (f359dd69833dd8800b54d458f6d37ab7c78df520, 2019-11-25T14:54:45.096Z) OS version: Windows_NT x64 10.0.17763

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 2112)| |GPU Status|2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.85GB (8.41GB free)| |Process Argv|| |Screen Reader|no| |VM|0%|
Extensions (10) Extension|Author (truncated)|Version ---|---|--- vscode-css-formatter|aes|1.0.1 xml|Dot|2.5.0 azure-pipelines|ms-|1.157.4 vscode-cosmosdb|ms-|0.11.0 vscode-docker|ms-|0.9.0 vscode-logicapps|ms-|0.2.24 mssql|ms-|1.7.1 azure-account|ms-|0.8.7 powershell|ms-|2019.11.0 trailing-spaces|sha|0.3.1
vscodebot[bot] commented 4 years ago

(Experimental duplicate detection) Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

roblourens commented 4 years ago

Do the users have the same $HOME? The server is installed here and we assume that there is one per user.

lucaRRRdev commented 4 years ago

Users have different home folders however we created 'data' subfolder within VSCode folder containing subfolders 'user-data' and 'extensions' so the application is really portable

From: Rob Lourens notifications@github.com Sent: mercredi, 11 décembre 2019 01:28 To: microsoft/vscode-remote-release vscode-remote-release@noreply.github.com Cc: Moretti,Luca,LA TOUR-DE-PEILZ,GLOBE Swiss LGO Appl. Techn. Solutions Luca.Moretti@nestle.com; Author author@noreply.github.com Subject: Re: [microsoft/vscode-remote-release] Multiple VSCode run on remote server opens only on first user (#1992)

Do the users have the same $HOME? The server is installed here and we assume that there is one per user.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-remote-release%2Fissues%2F1992%3Femail_source%3Dnotifications%26email_token%3DAN67X7CEOFIKDACE76L3QBLQYAX2HA5CNFSM4JXDTVS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGRN63A%23issuecomment-564322156&data=02%7C01%7Cluca.moretti%40nestle.com%7C60f0a3558ccb4090ae7f08d77dd1066f%7C12a3af23a7694654847f958f3d479f4a%7C0%7C0%7C637116209018188618&sdata=BkgRm2shNQER0nMDhG3DZrW3oVNtNWq8RqYYu6c4jPU%3D&reserved=0, or unsubscribehttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAN67X7CEWOMQQJOOEHUW743QYAX2HANCNFSM4JXDTVSQ&data=02%7C01%7Cluca.moretti%40nestle.com%7C60f0a3558ccb4090ae7f08d77dd1066f%7C12a3af23a7694654847f958f3d479f4a%7C0%7C0%7C637116209018188618&sdata=EpYHav%2FkySlj3AgZq8Wf8FX8HCD8aSKLh8ornTetEUY%3D&reserved=0.

roblourens commented 4 years ago

Sorry, I don't really understand what you're saying. Can you share a log from the Remote-SSH output channel when you try to connect?

lucaRRRdev commented 4 years ago

Likewise, I don't understand how your question relates to our issue.

Let me explain once more:

We have VSCode portable on a remote Win2016 server.

We have migrated to portable mode as explained in link https://code.visualstudio.com/docs/editor/portable. "This mode enables all data created and maintained by VS Code to live near itself, so it can be moved around across environments."

The issue is then happening when 2 users (with admin rights) open a remote desktop session on the remote server. When 1st user launch VSCode, all is OK. When 2nd user launch VSCode, it does not open in his own session, but in the session of the 1st user.

Problem is occurring because we use this portable mode as all user and extensions data is common to both users.

Is this behavior by design or is anyone planning to fix it?

From: Rob Lourens notifications@github.com Sent: jeudi, 12 décembre 2019 00:03 To: microsoft/vscode-remote-release vscode-remote-release@noreply.github.com Cc: Moretti,Luca,LA TOUR-DE-PEILZ,GLOBE Swiss LGO Appl. Techn. Solutions Luca.Moretti@nestle.com; Author author@noreply.github.com Subject: Re: [microsoft/vscode-remote-release] Multiple VSCode run on remote server opens only on first user (#1992)

Sorry, I don't really understand what you're saying. Can you share a log from the Remote-SSH output channel when you try to connect?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-remote-release%2Fissues%2F1992%3Femail_source%3Dnotifications%26email_token%3DAN67X7AS55E5XG4PAKEDYNTQYFWTTA5CNFSM4JXDTVS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGU35TI%23issuecomment-564772557&data=02%7C01%7Cluca.moretti%40nestle.com%7Ccabf4ac0b3b94b4b701608d77e8e52f8%7C12a3af23a7694654847f958f3d479f4a%7C0%7C0%7C637117022051459954&sdata=YQ3rgiFwUWK40vdHBVv6sZJ5jMT3pMw5A5tI7EyT6lI%3D&reserved=0, or unsubscribehttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAN67X7F6VMGSIHXKZ7TIPO3QYFWTTANCNFSM4JXDTVSQ&data=02%7C01%7Cluca.moretti%40nestle.com%7Ccabf4ac0b3b94b4b701608d77e8e52f8%7C12a3af23a7694654847f958f3d479f4a%7C0%7C0%7C637117022051469950&sdata=oM388mCAdf5RlzRMR31mQLXRmeVn0bU%2B2DNszu%2FzGm4%3D&reserved=0.

roblourens commented 4 years ago

Ok, I think I understand. You filed this issue in the vscode-remote-release repo, so I thought you were connecting with our "remote" extensions, e.g. Remote-SSH. But it sounds like you are not doing that, you are using remote desktop to use SSH.

Like you say, the two users are launching vscode with the same data directory. But, you can launch vscode with a manually specified user data directory by using the --user-data-dir flag. You can point that to any directory and then the new vscode instance will run independantly from the original instance. I think that is what you want. Or you can just deploy two copies of portable vscode.