zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
39.31k stars 2.04k forks source link

Cannot dismiss "Copilot is disabled" modal #12740

Open kpitt opened 3 weeks ago

kpitt commented 3 weeks ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Once the "Copilot is disabled" modal is displayed on the screen, it cannot be dismissed without quitting Zed and restarting. Most editing functionality still works, but some functions and keyboard shortcuts seem to be blocked.

  1. Disable Copilot in the settings.json file.
  "features": {
    "inline_completion_provider": "none"
  },
  "show_copilot_suggestions": false,
  1. Open the Welcome view (Help > Show Welcome).
  2. Click on the "Sign in to GitHub Copilot" button. The "Copilot is disabled" modal will be displayed at the top of the window.
  3. Hit Esc key, mouse click inside the modal, or mouse click outside the modal. The modal is still displayed.
  4. Close the Welcome page, or just switch to a different editor tab. The modal is still displayed, and hides some of the content of the selected tab.
  5. In the editor tab, inputting and editing text and many other editing actions work, but try for example cmd + f or cmd + shift +f, or select "Find" or "Find in Project" from the "Edit" menu. Nothing happens.

Environment

Zed: v0.138.4 (Zed) OS: macOS 14.5.0 Memory: 32 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

Screenshot 2024-06-06 at 11 10 07 AM

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

No response

kpitt commented 3 weeks ago

Also just discovered that opening a different modal, such as the command palette or file finder, will override the Copilot modal. The new modal can then be dismissed, and the "Copilot is disabled" modal will be cleared.