question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support virtual workspaces

See original GitHub issue

👋 Hi there, Martin here, from the VS Code team.

Recently we’ve announced the Remote Repository feature that lets you browse and edit files and folders directly on GitHub.

Open Remote Repository... opens VSCode on a folder or workspace located on a virtual file system. We call this a virtual workspace. We observed that not all extension support this well, either because they can not, or they haven’t thought about it.

It would be fantastic if you could test whether your extension can handle virtual workspaces:

Check out the Virtual Workspaces Extension Author Guide on how to do that.

When done, set the new virtualWorkspaces capability in your ‘package.json’.

{
  "capabilities": {
    "virtualWorkspaces": true | false
  }
}
  • Use "virtualWorkspaces": true if your extension is prepared for virtual workspaces
  • Use "virtualWorkspaces": false if your extension should be disabled when a virtual workspace is opened

For questions and comments please use the Virtual Workspaces Tracking Issue.

Thanks for the support and the great work! ❤️

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:21
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

15reactions
aeschlicommented, Jun 16, 2021

@nicooprat @oeg8168 Until Vetur has adopted this, you can set

        "extensions.supportVirtualWorkspaces": {
            "octref.vetur": true
        }     

For vetur to run, you also need to trust the workspace.

1reaction
aeschlicommented, Oct 17, 2021

Typescript provides limited support that is basically just looking at the current file and knows a set of bundled libraries.

For vue it would be great to at least get the grammars when in a virtual workspace. For that, the best solution would be to extract a simple language extension that contains the language definition and the grammars. That will be useful as well for untrusted workspaces as well as when running as a web extension.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Virtual Workspaces | Visual Studio Code Extension API
Learn how to support virtual workspaces in extensions. ... When a virtual workspace is open in a VS Code window, this is indicated...
Read more >
Virtual Workspaces · microsoft/vscode Wiki - GitHub
Extension Author Guide for Supporting Virtual Workspaces. We have recently announced the Remote Repository feature in the VS Code Insiders ...
Read more >
Why are some of my extensions not working in VS Code 1.57?
Open the extensions view; Search @installed and find the extension you are interested in. Extensions that are disabled due to workspace trust ...
Read more >
What is a Virtual Workspace? - Citrix
A virtual workspace centralizes the technology stack, simplifying the work and saving the employees' time. This, in turn, provides a better employee experience, ......
Read more >
VS Code tips — Workspace trust and restricted mode - YouTube
Workspace trust helps you more safely work with projects you find online.With workspace trust, new projects are open in restricted mode, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found