Skip to content

Menu needs to be aware of what is going on inside current active workbench #991

Closed

Description

If the editor has no files open, choosing Find or Replace from the menu doesn't do anything and doesn't warn the user that this functionality requires an open file. A feedback to the user along the lines of "please open a file first" would point out the EBKAC more explicitly.

(as an aside, I tried doing that in the hope I could find a global, project-wide replace - since a global search is there, I was hoping a global replace would have been there)

Activity

  1. egamma commented on Dec 4, 2015

    @egamma
    Member

    (as an aside, I tried doing that in the hope I could find a global, project-wide replace - since a global search is there, I was hoping a global replace would have been there)

    Sorry not yet, but it is on our Roadmap.

  2. alexdima commented on Jan 9, 2016

    @alexdima
    Member

    Benjamin Pasero (@bpasero) Some entries in the Edit menu should be disabled if no editor is open:

    • undo/redo
    • cut/copy/paste
    • select all, find/replace
  3. added
    bug
    on Jan 11, 2016
  4. changed the title [-]Find/Replace menus fail silently if no files are open[/-] [+]Some entries in the menu should be disabled when no editor is open[/+] on Jan 11, 2016
  5. added
    upstream
    on Apr 1, 2016
  6. bpasero commented on Apr 1, 2016

    @bpasero
    Contributor

    Marking as upstream for better menu API around enablement.

  7. added
    feature-request
    and removed
    bug
    upstream
    on Aug 31, 2016
  8. 12 remaining items

  9. added
    unreleased
    on Oct 16, 2020
  10. sbatten commented on Oct 16, 2020

    @sbatten
    Member

    fix addresses the OP's example. since different commands require different level of granularity for context keys, they should be grouped according to interest and technical requirements. that is why, given the age of this issue, I have stopped at the OP's suggestion.

  11. added
    insiders-released
    and removed
    unreleased
    on Oct 19, 2020
  12. added
    verification-needed
    on Oct 27, 2020
  13. rzhao271 commented on Oct 27, 2020

    @rzhao271
    Collaborator
    1. Have VS Code open with no files open, try find/replace and get the warning message
    2. Open a single non-empty file
    3. The warning message is still there
    4. Do a search where there's a result in the opened file, and the search results show up properly
    5. Close that file and clear the search query, the warning message is gone even though no files are open now

    I think it just has to do with file open/close events

  14. sbatten commented on Oct 27, 2020

    @sbatten
    Member

    this issue only deals with Find and Replace not Find in Files or Replace in Files

  15. locked and limited conversation to collaborators on Dec 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestinsiders-releasedmenusverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions