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
This commit is contained in:
InfyniteHeap
2025-06-05 19:38:19 +08:00
committed by GitHub
parent 3884de937b
commit 244d8517f1
2 changed files with 3 additions and 3 deletions
-3
View File
@@ -1,6 +1,3 @@
// Disable command line from opening on release mode
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
mod reliability;
mod zed;
+3
View File
@@ -1,3 +1,6 @@
// Disable command line from opening on release mode
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
pub fn main() {
// separated out so that the file containing the main function can be imported by other crates,
// while having all gpui resources that are registered in main (primarily actions) initialized