How to enable extensions in VS Code workspace? #163
Replies: 1 comment 4 replies
|
Hey @Greenheart, I can't reproduce this issue with the TypeScript extension in VS Code. The extension works as expected, given that there is no disk access that the extension can use to provide all the workspace information. It will mainly use the information that is available in the currently open files:
(screenshot showing working TypeScript intellisense for a guest of a workspace)
AFAIK Live Share also provides a purely virtual file system. I did a bit of reverse engineering when I started with this project. But they also do a lot of Microsoft magic that non-Microsoft extension developers aren't allowed to use (i.e. proposed VS Code API).
That's entirely up to the extension, whether it supports virtual files. I've implemented extensions in the past that can do both. |


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
How to make extensions like Prettier work in a collaboration session? Also, Go to definition and TypeScript intellisense don't work as expected.
When joining a session, a virtual workspace is created at
~/.config/Code/User/globalStorage/typefox.open-collaboration-tools/workspaces/Oe49SfaBFj0I09GZ_0cXPE9l/Open\ Collaboration.code-workspace:{ "folders": [ { "name": "<project-name>", "uri": "oct:/<project-name>/<project-name>" } ] }According to VS Code command
Workspace: Manage Workspace Trust, it says "This window is trusted".However, VS Code extensions only work for the session host - not for the participants. This makes it seem like the workspace is in fact not trusted.
Alternatively, this might be caused by the virtual workspace
oct:/<project-name>/<project-name>. Perhaps VS Code only allows extensions to run on local files, and not custom protocol URIs.It might be worth exploring how VS Code LiveShare solved this. Perhaps they use an actual directory synced to the participant computer, which enables extensions?
All reactions