Skip to content

Incomplete notification text if FileSystemProvider refuses to create \.vscode\settings.json #108673

@gjsjohnmurray

Description

@gjsjohnmurray

Issue Type: Bug

  1. Clone vscode-extension-samples
  2. Open fsprovider-sample folder
  3. Add the following lines to the top of writeFile in src/fileSystemProvider.ts
        if (uri.path.startsWith("/.")) {
            throw vscode.FileSystemError.NoPermissions("dot-folders not supported by MemFS");
          }
  1. Run the sample.
  2. In the EH window, run the MemFS: Setup Workspace command.
  3. Open Settings, select the subtab for the 'MemFS - Sample' folder, then use the action button to open JSON.

Result is the following notification:
image

I assume the text of the thrown error should appear instead of {1}

VS Code version: Code 1.50.0 (93c2f0f, 2020-10-07T06:10:52.432Z)
OS version: Windows_NT x64 10.0.18363

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugconfigVS Code configuration, settingsinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions