# editor: Revert flattening of code actions in mouse context menu \(\#28988\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ba588161d9e0f36efeffec313ad31172235ad4cb

Requested commit: ba588161d9e0f36efeffec313ad31172235ad4cb

Commit: ba588161d9e0f36efeffec313ad31172235ad4cb

Tree: 2d78de44fc3b7afe884fd4c72102571259c8300f

Author: Smit Barmase

Committer: GitHub

## Message

```
editor: Revert flattening of code actions in mouse context menu (#28988)

In light of making context not move dynamically, reverting back these
changes.

- Doing it async will lead to a loading state, which moves the context
menu.
- Doing it sync introduces noticeable lag in opening the context menu.
   
Future idea is to introduce fixed code actions like refactor, rewrite,
etc depending on code action kind [(see
more)](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#codeActionKind)
which will use submenus.
 
Release Notes:

- N/A
```

## Parents

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

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