# gpui-macros: Hide autogenerated action types/functions \(\#10417\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ea165e134d0d0ae665acff0c60bdd9cf26ffe2e0

Requested commit: ea165e134d0d0ae665acff0c60bdd9cf26ffe2e0

Commit: ea165e134d0d0ae665acff0c60bdd9cf26ffe2e0

Tree: b742af5b4c5246ecf1266251a164f7855a7706a2

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
gpui-macros: Hide autogenerated action types/functions (#10417)

I've found it a bit annoying that autogenerated code shows up in
completions when working on Zed, so I've moved them into an associated
function of a struct we're "implementing" Action on. That way, neither a
generated function nor a static show up in completions.

Note that this change only affects Zed codebase! I'm pushing it up right
after last Preview to give it some time on Nightly.
Before:

![image](https://github.com/zed-industries/zed/assets/24362066/7343201f-f05b-4342-a9f7-97f002d88a48)

![image](https://github.com/zed-industries/zed/assets/24362066/e67f9dcb-e090-40e0-873c-e51bd39e0c7e)

After:

![image](https://github.com/zed-industries/zed/assets/24362066/0704211a-73f5-4f12-8583-9e47f092e5b7)

![image](https://github.com/zed-industries/zed/assets/24362066/c6fa00f5-fd8f-4f06-8be7-b74acedccd7c)


Release Notes:

- N/A
```

## Parents

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

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