Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
anthonykim1 opened this issue Nov 18, 2024 · 0 comments
Assignees
Labels

Comments

@anthonykim1
Copy link
Contributor

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
@anthonykim1 anthonykim1 changed the title openNotebookDocument with same URI creates another untitled*.ipynb calling openNotebookDocument with hidden notebook URI creates another untitled*.ipynb with same URI Nov 18, 2024
@anthonykim1 anthonykim1 changed the title calling openNotebookDocument with hidden notebook URI creates another untitled*.ipynb with same URI Calling openNotebookDocument with hidden notebook URI creates another untitled*.ipynb with same URI Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants