Skip to content

editor should not be dimmed when navigating search results #190102

Closed as not planned

Description

editor.mov

Activity

  1. Tyriar commented on Aug 9, 2023

    @Tyriar
    Contributor

    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?

    rules.add(`.monaco-workbench .editor-instance:not(:focus-within) .monaco-editor { ${filterRule} }`);

  2. added
    under-discussion
    on Aug 10, 2023
  3. andreamah commented on Aug 10, 2023

    @andreamah
    Contributor

    editor.mov

    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.

  4. Tyriar commented on Aug 10, 2023

    @Tyriar
    Contributor

    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.

  5. andreamah commented on Aug 10, 2023

    @andreamah
    Contributor

    What are the repro steps to seeing the dimmed editor when viewing search results? I don't think I see it.

  6. meganrogge commented on Aug 10, 2023

    @meganrogge
    CollaboratorAuthor

    set accessibility.unfocusedViewOpacity and open the search panel, search for something and click through the results

  7. andreamah commented on Aug 10, 2023

    @andreamah
    Contributor

    Ah, I see it now. Can we check for context keys? If hasSearchResult & searchViewletFocus, then don't dim the editor?

  8. Tyriar commented on Aug 11, 2023

    @Tyriar
    Contributor

    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.

  9. andreamah commented on Aug 30, 2023

    @andreamah
    Contributor

    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

  10. added
    feature-request
    accessibility
    and removed
    under-discussion
    on Aug 31, 2023
  11. added
    *out-of-scope
    on Dec 19, 2024
  12. vs-code-engineering commented on Dec 19, 2024

    @vs-code-engineering
    Contributor

    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!

  13. added
    workbench-dim-unfocused
    on Dec 19, 2024
  14. Tyriar commented on Dec 19, 2024

    @Tyriar
    Contributor

    Merging into #236576

    /duplicate

  15. added
    *duplicate
    on Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicate*out-of-scopeaccessibilityfeature-requestworkbench-dim-unfocused

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions