Skip to content

ERR: View resolver already registered for <viewId> #108555

@bcanzanella

Description

@bcanzanella

VSCode Version:
Version: 1.50.0 (user setup)
Commit: 93c2f0f
Date: 2020-10-07T06:10:52.432Z
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.19041

Steps to Reproduce:

  1. My fork has the changes to reproduce this. https://github.com/microsoft/vscode-extension-samples/compare/master...bcanzanella:already-registered-issue?expand=1 it's just a couple of package.json changes (and an svg [meow!?])

  2. There's some combination of loading/reloading the extension and adding a folder to the workspace which creates ERR View resolver already registered for calicoColors.colorsView. I can consistently get it to happen with CodeStream by ensuring I don't have a workspace open, adding a folder to the workspace, and clicking the icon in the activity bar to open the webview. That doesn't seem to work 100% of the time with the calico cat example, but after a couple of times it seems to happen.

It doesn't appear to affect the sample's webview except for the error in the console, but when this happens with CodeStream our webview is dead (see attached).

My first guess is perhaps the registerWebviewViewProvider is somehow not disposing correctly? (even though it's in the context.subscriptions array...)

image
image

Does this issue occur when all extensions are disabled?: N/A

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeededwebviewWebview issueswebview-viewsWebview views in the sidebar and panel

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions