Skip to content

[vscode] Running example FileSystemProvider plugin has different behavior #8167

@Glamhoth

Description

@Glamhoth

Bug Description:

When trying to use example FileSystemProvider plugin the (expected) behavior on Code[1] differs from the behavior on Theia[2].

[1] Running plugin command Setup workspace with or without opened workspace creates new and empty directory with name that was passed to vscode.workspace.updateWorkspaceFolders in extension.ts.
image

[2] Running plugin command Setup workspace without opened workspace throws an error Failed to update workspace folders: Error: There is not active workspace. If any folder was already opened in the workspace, the same plugin command opens new directory, but instead of named, empty one it's system's root.
image

Steps to Reproduce:

  1. Clone microsoft/vscode-extension-samples
  2. Add fsprovider-sample plugin to Theia
  3. Run Theia
  4. Execute Setup workspace command from the command paletter

Additional Information

  • Operating System:
    Ubuntu 18.04 if running on Docker image
    Arch Linux, kernel 5.7.7 if running on host
  • Theia Version:
    Tried both release 1.3.0 and compiling akosyakov/integrate-vscode-api-7269 branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbugs found in the applicationhelp wantedissues meant to be picked up, require helpvscodeissues related to VSCode compatibilityworkspaceissues related to the workspace

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions