Empty webview tab on reopen of VS Code
@ScottCarda-MS is already working on this.
Since May 6, 2025.
- Dominant language
- Rust
- Stars
- 1k
- Forks
- 212
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 65
Description
**Describe the bug**
When you open a VS Code instance that had more than one Q# webview tab open from the last time the instance was open, some of the tabs will not have content in them.
**To Reproduce**
Steps to reproduce the behavior:
1. Open or be using VS Code.
2. Use the Command Pallet to bring up the Q# Help tab.
3. Use the Command Pallet to bring up the Q# API Documentation tab.
4. Make sure that only one of those tabs is visible (the Documentation tab for this example).
5. Close VS Code.
6. Reopen Vs Code.
7. Note that the Documentation tab is visible and filled in.
8. Use the Command Pallet to bring up the non-visible tab (the Help tab in this example).
9. It will bring up a _new_ Help tab. **(this is incorrect behavior)**
10. After viewing the _new_ Help tab, navigate to the old Help tab.
11. Notice that the old Help tab will be empty. **(this is incorrect behavior)**
**Expected behavior**
When you use the Command Pallet to bring up the Help tab after reopening VS Code, it should navigate you to the existing Help tab, rather than creating a new Help tab.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.