-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[vscode] Running example FileSystemProvider plugin has different behavior #8167
Comments
Thought it is related to fs APIs, but it is related to workspace APIs. I think it is known bug that we don't respect workspace names yet. |
How does workspace support for custom scheme/filesystem provider look like? In the example plugin a |
I don't think it is related to fs providers, it is about: vscode.workspace.updateWorkspaceFolders(0, 0, { uri: vscode.Uri.parse('memfs:/'), name: "MemFS - Sample" }); We ignore currently |
But this plugin registers provider {
"folders": [
{
"path": "memfs:///folder"
}
]
} it would correctly show those files that are initialized by |
I see, it looks like another bug in our |
I also just tried to implement an own FileSystemProvider and got the same issue. It looks like the problem is in WorkspaceService.transformToAbsolute:
If I remove the lines 1,3,4 and 5 and simply push the path to the folders array my FileSystemProvider is hit properly with its scheme. |
I faced the same issue in my custom extension where I am using Theia version: 1.43.1 |
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 tovscode.workspace.updateWorkspaceFolders
inextension.ts
.[2] Running plugin command
Setup workspace
without opened workspace throws an errorFailed 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.Steps to Reproduce:
microsoft/vscode-extension-samples
fsprovider-sample
plugin to TheiaSetup workspace
command from the command paletterAdditional Information
Ubuntu 18.04 if running on Docker image
Arch Linux, kernel 5.7.7 if running on host
Tried both release
1.3.0
and compilingakosyakov/integrate-vscode-api-7269
branch.The text was updated successfully, but these errors were encountered: