Skip to content

Calling openNotebookDocument with hidden notebook URI creates another untitled*.ipynb with same URI #234137

@anthonykim1

Description

@anthonykim1

Investigated from: microsoft/vscode-python#24148 (review)
In the reloading of notebook document such as native REPL, calling

 await workspace.openNotebookDocument(mementoValue as Uri);

works fine if the notebook document is visible.

Problem happens when user hide their notebook document (such as native REPL) hiding behind some untitled text file, and then calling

 await workspace.openNotebookDocument(mementoValue as Uri);

will create another instance of untitled.ipynb with the same exact URI as the notebook that was hidden.

Screen.Recording.2024-11-18.at.12.35.40.PM.mov

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugnotebook

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions