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
It seems that anything off screen isn't considered for built-in browser search. My React app has embedded Monaco editors too and I found this same bug. I don't think each app that embeds Monaco should have to hook into the browser find-in-page and try to do custom code.
Actual (Problematic) Behavior
Actual:
Only finds 1 instance of 'jscode'
Actual screenshot:
Expected Behavior
Expected:
Should find 2 instances 'jscode'. If I scroll just a bit lower down and repeat, it finds both:
I noticed it pointed out https://developer.mozilla.org/en-US/docs/Web/CSS/content-visibility as one way to address this. Not sure if Monaco can make use of that?
The text was updated successfully, but these errors were encountered:
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Link
The existing code in this existing sample demonstrates the issue:
https://microsoft.github.io/monaco-editor/playground.html?source=v0.52.0#example-extending-language-services-configure-javascript-defaults
Monaco Editor Playground Code
Reproduction Steps
https://microsoft.github.io/monaco-editor/playground.html?source=v0.52.0#example-extending-language-services-configure-javascript-defaults
It seems that anything off screen isn't considered for built-in browser search. My React app has embedded Monaco editors too and I found this same bug. I don't think each app that embeds Monaco should have to hook into the browser find-in-page and try to do custom code.
Actual (Problematic) Behavior
Actual:
Only finds 1 instance of 'jscode'
Actual screenshot:
Expected Behavior
Expected:
Should find 2 instances 'jscode'. If I scroll just a bit lower down and repeat, it finds both:
Additional Context
Please refer to this blog post that has some commentary on find-in-page support these days:
https://textslashplain.com/2024/07/15/browser-features-find-in-page/
I noticed it pointed out
https://developer.mozilla.org/en-US/docs/Web/CSS/content-visibility
as one way to address this. Not sure if Monaco can make use of that?The text was updated successfully, but these errors were encountered: