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
editor should not be dimmed when navigating search results #190102
*duplicateIssue identified as a duplicate of another issue(s)*out-of-scopePosted issue is not in scope of VS CodeaccessibilityKeyboard, mouse, ARIA, vision, screen readers (non-specific) issuesfeature-requestRequest for new features or functionalityworkbench-dim-unfocusedRelated to the accessibility.dimUnfocused.* feature
Andrea Mah (@andreamah) is there any class or something other CSS class we could use to disable this opacity rule for the editor when a search is active?
Andrea Mah (@andreamah) it's not referenced in search, it's a small workbench contrib that currently depends on terminal and editor. We also want to include search in the rule to ensure the editor with the active match also shows up, even when it's not focused.
We could use IContextKeyChangeEvent.onDidChangeContext but that would involve setting up a listener and replacing the CSS. That's an option, but it would be preferable if there's something like .has-search-results. If that doesn't exist that's fine, we can go the event route.
Sorry for the late reply on this. I don't think there's anything like .has-search-results since search uses the context key to make changes to the view. We could probably have to do a IContextKeyChangeEvent.onDidChangeContext for hasSearchResult
We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.
*duplicateIssue identified as a duplicate of another issue(s)*out-of-scopePosted issue is not in scope of VS CodeaccessibilityKeyboard, mouse, ARIA, vision, screen readers (non-specific) issuesfeature-requestRequest for new features or functionalityworkbench-dim-unfocusedRelated to the accessibility.dimUnfocused.* feature
Activity
Tyriar commentedon Aug 9, 2023
Andrea Mah (@andreamah) is there any class or something other CSS class we could use to disable this opacity rule for the editor when a search is active?
vscode/src/vs/workbench/contrib/accessibility/browser/unfocusedViewDimmingContribution.ts
Line 49 in 91acb95
andreamah commentedon Aug 10, 2023
this is loading for me as a 1-second video. could you re-attach the video? I'm not sure where that opacity rule is referenced in search.
Tyriar commentedon Aug 10, 2023
Andrea Mah (@andreamah) it's not referenced in search, it's a small workbench contrib that currently depends on terminal and editor. We also want to include search in the rule to ensure the editor with the active match also shows up, even when it's not focused.
andreamah commentedon Aug 10, 2023
What are the repro steps to seeing the dimmed editor when viewing search results? I don't think I see it.
meganrogge commentedon Aug 10, 2023
set
accessibility.unfocusedViewOpacityand open the search panel, search for something and click through the resultsandreamah commentedon Aug 10, 2023
Ah, I see it now. Can we check for context keys? If
hasSearchResult&searchViewletFocus, then don't dim the editor?Tyriar commentedon Aug 11, 2023
We could use
IContextKeyChangeEvent.onDidChangeContextbut that would involve setting up a listener and replacing the CSS. That's an option, but it would be preferable if there's something like.has-search-results. If that doesn't exist that's fine, we can go the event route.andreamah commentedon Aug 30, 2023
Sorry for the late reply on this. I don't think there's anything like
.has-search-resultssince search uses the context key to make changes to the view. We could probably have to do aIContextKeyChangeEvent.onDidChangeContextforhasSearchResultvs-code-engineering commentedon Dec 19, 2024
We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.
If you wonder what we are up to, please see our roadmap and issue reporting guidelines.
Thanks for your understanding, and happy coding!
Tyriar commentedon Dec 19, 2024
Merging into #236576
/duplicate