Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support virtual workspaces #1249

Closed
lszomoru opened this issue May 7, 2021 · 5 comments
Closed

Support virtual workspaces #1249

lszomoru opened this issue May 7, 2021 · 5 comments

Comments

@lszomoru
Copy link
Member

lszomoru commented May 7, 2021

👋 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! ❤️

@dbaeumer
Copy link
Member

Supporting virtual workspaces for ESLint will be a major work item and very likely only possible for a small set of scenarios. I will for now flag ESLint as not fit.

@aeschli
Copy link

aeschli commented May 26, 2021

Thanks for adopting the virtualWorkspaces capability!

It's now also possible to give a description why the capability is enabled or disabled:

{
  "capabilities": {
    "virtualWorkspaces": {
      "supported": false,
      "description": "Debugging is not possible in virtual workspaces."
    }
  }
}
{
  "capabilities": {
    "virtualWorkspaces": {
      "supported": "limited",
      "description": "In virtual workspaces, resolving and finding references across files is not supported."
    }
  }
}

This message can be seen in the extensions view:
image

@dbaeumer
Copy link
Member

A added a description

@aeschli
Copy link

aeschli commented May 27, 2021

I forgot to mention that this requires 1.57 (insiders).

@dbaeumer
Copy link
Member

Thanks, not published yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants