microsoft / microsoft/vscode

Markdown Preview search does not work when preview is moved to a separate window

Open
#334,860 1 comment 0 reactions 1 assignee Claimed by @federicobrancasi View on GitHub
stale triage-needed
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

Does this issue occur when all extensions are disabled?: Yes

- VS Code Version: 1.136.1
- OS Version: macOS 26.6.0 (Darwin arm64)

Steps to Reproduce:

1. Open a `.md` file.
2. Open the Markdown Preview using "Open Preview".
3. Move/detach the Markdown Preview tab into a separate VS Code window.
4. Focus the Markdown Preview window.
5. Press `Cmd + F` on macOS or `Ctrl + F` on Linux.
6. Search for a word that exists in the Markdown document.

Expected:
The search should find and highlight the matching text in the Markdown Preview when it is opened in a separate VS Code window.

Actual:
The search does not find or highlight the searched word when the Markdown Preview is in a separate VS Code window.

The same search works correctly when the Markdown Preview remains in the original VS Code window.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.