# vim: Fix code actions menu \(\#2650\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/0fd0b60bd61df99e986a0c3417e5a21e9fa31b60)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 0fd0b60bd61df99e986a0c3417e5a21e9fa31b60

Requested commit: 0fd0b60bd61df99e986a0c3417e5a21e9fa31b60

Commit: 0fd0b60bd61df99e986a0c3417e5a21e9fa31b60

Tree: cd84eefbcc6405960602287d7aeaaa9204d6c977

Author: Nathan Sobo

Committer: GitHub

## Message

```
vim: Fix code actions menu (#2650)

Fixes: zed-industries/community#1690

I'm not sure this is the correct way to fix this...
* A simpler approach would be to just say `!showing_code_actions` in the
binding file (as `showing_completions` can only happen in insert mode -
and `VimControl` will be false). This seemed a little error prone if
more menus were added in the future.
* A more complicated approach would be to copy the way this is done from
the MouseContextMenu, which registers its own keyboard shortcuts, and as
such uses those when it's open. This seems "more correct", but is a
major refactoring for a very small reward.

Release Notes:

- vim: Fix code actions menu
([#1690](https://github.com/zed-industries/community/issues/1690))
```

## Parents

- [a09c6b26917ffe6b6237dae79c6ed055f6e667c4](https://git.cafe/gitcafe/zed/commit/a09c6b26917ffe6b6237dae79c6ed055f6e667c4?format=markdown)

- [a1343f0d2c44cb9f4123e8c12f98e21354658c13](https://git.cafe/gitcafe/zed/commit/a1343f0d2c44cb9f4123e8c12f98e21354658c13?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/0fd0b60bd61df99e986a0c3417e5a21e9fa31b60?format=markdown)
