# Fix Unexpected Console Window When Running Zed Release Build \(\#32144\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 244d8517f1be625d1ebcccf067906e2d8a840aac

Requested commit: 244d8517f1be625d1ebcccf067906e2d8a840aac

Commit: 244d8517f1be625d1ebcccf067906e2d8a840aac

Tree: 0f441e6d7b0fa1cc50d0d28c197a29e4176289a1

Author: InfyniteHeap

Committer: GitHub

## Message

```
Fix Unexpected Console Window When Running Zed Release Build (#32144)

The commit #31073 had introduced `zed-main.rs`, which replaced the
previous `main.rs` to be the "true" entry of the whole program. But as
the macro `#![cfg_attr(not(debug_assertions), windows_subsystem =
"windows")]` only works in the "true" entry, the release build will also
arise the console window if this macro doesn't move to the new entry
(the `zed-main.rs` here).


Release Notes:

- N/A
```

## Parents

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

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