Handle multiple users with /tmp/vscode-typescript#75547
Handle multiple users with /tmp/vscode-typescript#75547mjbvz merged 1 commit intomicrosoft:masterfrom asztal:patch-1
Conversation
This fixes an issue where the typescript language server fails to load if multiple users launch VS Code on the same Linux machine. Steps to reproduce: - Log in as user1 - Launch VS Code - Log out - Log in as user2 - Launch VS Code - It tries to write to files in /tmp/vscode-typescript, but that directory is not writeable because it is owned by user1 - You cannot use TypeScript intellisense This fix namespaces the directory with the current uid so that each user will get their own. On Windows, this shouldn't be an issue anyway since each user gets their own temp directory.
|
Thanks for the PR. Just two quick things:
|
|
Sure, I'll create an issue when I can. I'm not sure if it's as simple as I thought, or I probably would have come across this sooner.
|
|
Sounds good. If you can, please just try to create the issue over this weekend so we can merge this PR in before we lock down for the 1.36 release |
|
I haven't been able to verify that In any case, I assume on Windows each user has their own temp directory so windows users would have already been getting separate vscode-typescript caches per user? |
|
Thanks for creating the issue. Yes, I think that's that case on windows. I just don't want to create separate directories per process for windows specifically. Can you please make just make this explicit by adding a check such as |
|
Thanks. Will add the explicit platform check |
This fixes an issue where the typescript language server fails to load if multiple users launch VS Code on the same Linux machine.
Steps to reproduce:
This fix namespaces the directory with the current uid so that each user will get their own.
On Windows, this shouldn't be an issue anyway since each user gets their own temp directory.