You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Search in markdown preview panel not working in current main branch local build #222244
bugIssue identified by VS Code Team member as probable bugelectronIssues and items related to ElectronupstreamIssue identified as 'upstream' component related (exists outside of VS Code)webviewWebview issues
I found that the search functionality is not working for markdown preview. Seems like a recently introduced issue as when I tried to perform the search operation in stable release I was able to search across markdown preview.
Steps to Reproduce:
Preview a Markdown file
Search for any keyword present in markdown file.
You will see that it won't show results.
This bug could be pushed with next release and can cause issues with upcoming stable releases.
The intention seems to be that changes are gradually upstreamed into the main electron repo, but unfortunately the PR for the FindInFrame stuff is Closed for the time being: electron/electron#28274
Perhaps if we're able to merge the branch from that PR into an updated local build of electron, then we could use it with our vscode for debugging? 🤔
I switched to IntelliJ IDEA for MD. You may need some additional plugins to get close to what VS ships out of the box. So far I found you need Mermaid (for in-line diagrams).
bugIssue identified by VS Code Team member as probable bugelectronIssues and items related to ElectronupstreamIssue identified as 'upstream' component related (exists outside of VS Code)webviewWebview issues
Activity
dangerman commentedon Jul 20, 2024
When trying to search in a Markdown Preview whilst debugging, the code does hit
WebViewMainService.findInFrame():vscode/src/vs/platform/webview/electron-main/webviewMainService.ts
Lines 50 to 59 in 709c3d7
However,
frame.findInFrameisundefinedso it just skips the rest of the function - and this appears to be why it's not working.Now, according to this issue #201176 Microsoft uses a custom build of electron (from https://github.com/microsoft/vscode-electron-prebuilt that is not publicly accessible) for VS Code releases, with a
WebFrameMain.FindInFrame()implementation, so searching works.The intention seems to be that changes are gradually upstreamed into the main electron repo, but unfortunately the PR for the
FindInFramestuff is Closed for the time being: electron/electron#28274Perhaps if we're able to merge the branch from that PR into an updated local build of electron, then we could use it with our vscode for debugging? 🤔
rzhao271 commentedon Dec 13, 2024
Manav Agarwal (@manav014) are you still able to reproduce the issue on VS Code 1.96?
deepak1556 commentedon Dec 16, 2024
Raymond Zhao (@rzhao271) the api is not available in OSS builds
Anees Ahee (@dangerman) yeah we need to revisit upstreaming the change
KB-Q commentedon May 12, 2026
any update on this issue?
karlkaspar commentedon Jun 19, 2026
Still broken.... yay microsoft
tredondo commentedon Jul 21, 2026
Is this for real? After TWO YEARS you still can't search in rendered Markdown?!
Microsoft whatever, but only FOUR upvotes before I added mine?!
MarkJeronimus commentedon Aug 4, 2026
I switched to IntelliJ IDEA for MD. You may need some additional plugins to get close to what VS ships out of the box. So far I found you need Mermaid (for in-line diagrams).
mmahlies commentedon Oct 22, 2026
For some reason, I was able to use search feature in the Preview to the slide