Opening a workspace that uses a FileSystemProvider extension for its open files initially adds '(read-only)' suffixes to tab labels #91833
Labels
bug
Issue identified by VS Code Team member as probable bug
candidate
Issue identified as probable candidate for fixing in the next release
verified
Verification succeeded
workbench-editors
Managing of editor widgets in workbench window
Milestone
Issue Type: Bug
This issue does not occur in 1.42.1
To reproduce:
MemFS: Setup Workspace
command followed byMemFS: Create Files
file.ts
Ignore the fact that the tab disappears almost immediately. This is a consequence of the MemFS filesystem not being a persistent one, meaning that the restore logic is unable to restore contents for the file.
When tested with a FSP that accesses persistent storage, the previously-open file gets correctly reloaded. The spurious '(read-only)' suffix on the tab label disappears when the tab is clicked on.
I think the bug arises because the extension that implements the scheme specified by the restored file's URI hasn't yet been activated by the time this code gets called:
vscode/src/vs/workbench/common/editor.ts
Lines 690 to 692 in 77dcee2
But I haven't yet discovered what changed in 1.43 to cause this regression.
VS Code version: Code - Insiders 1.43.0-insider (17c6d12, 2020-02-28T12:46:02.355Z)
OS version: Windows_NT x64 10.0.18363
The text was updated successfully, but these errors were encountered: