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
Activating word highlighting across cells in VScode notebooks #184259
When I load an .ipynb file and I highlight a word in an individual cell, then VS Code highlights all occurrences of the word in this cell.
But it does not highlights the word across cells. Is there a way to configure it to do so?
Talked with Joh re: some editor work that was working to solve a similar issue. He solved (#30014) for inline chat via linking wordHighlighters, but it was a somewhat limited fix, as the models had to be identical.
Current thoughts are to create a MultiDocumentHighlightProvider and then refactor a bit of the work within wordHighlighter such that computeOccurences returns a Map<URI, DocumentHighlights[]>. This would create a solution that would solve highlighting across all open editors, fixing split view highlighting, notebooks, inline chat, etc etc.
Part of the issue lies in not having a position when you are computing highlights for the non-primary model aka the non-active editor(s). A pure textual search would work but isn't the most performant. Food for thought.
Activity
rebornix commentedon Jun 29, 2023
Duplicate issue #91808
and it might be possible now with #185351
Yoyokrazy commentedon Oct 12, 2023
Talked with Joh re: some editor work that was working to solve a similar issue. He solved (#30014) for inline chat via linking
wordHighlighters, but it was a somewhat limited fix, as the models had to be identical.Current thoughts are to create a
MultiDocumentHighlightProviderand then refactor a bit of the work withinwordHighlightersuch thatcomputeOccurencesreturns aMap<URI, DocumentHighlights[]>. This would create a solution that would solve highlighting across all open editors, fixing split view highlighting, notebooks, inline chat, etc etc.Part of the issue lies in not having a position when you are computing highlights for the non-primary model aka the non-active editor(s). A pure textual search would work but isn't the most performant. Food for thought.