Error when clicking on nodes in vscode
When running the example notebook when using vscode

However, I do actually see the widget rendering at this point (so the above may be a red herring). However, clicking on any of the nodes produces this error message:

The widgets work fine in Jupyter lab with Firefox.
Poking around a bit I see that the widget defines an _id attribute which defaults to "#". I wonder if maybe vscode is misinterpreting this attribute or reserves that attribute for internal use, and if the problem might be fixed by renaming _id. I tried testing this, but I couldn't actually get vs code to load locally defined ipytree widgets.
ipytree = 0.2.1 ipywidgets = 7.7.0
VS Code version info: Version: 1.66.2 Commit: dfd34e8260c270da74b5c2d86d61aee4b6d56977 Date: 2022-04-11T07:49:20.994Z (2 wks ago) Electron: 17.2.0 Chromium: 98.0.4758.109 Node.js: 16.13.0 V8: 9.8.177.11-electron.0 OS: Darwin x64 20.6.0
I'm seeing the same issue. Clicking on a node in the tree results in a modal dialog from vscode:
If I go ahead and create the file (named "#"), clicking a node will open the file in the vscode editor pane.