python: Fix flickering in the status bar (#36039)
- **util: Have maybe! use async closures instead of async blocks** - **python: Fix flickering of virtual environment indicator in status bar** Closes #30723 Release Notes: - Python: Fixed flickering of the status bar virtual environment indicator --------- Co-authored-by: Lukas Wirth <lukas@zed.dev>
This commit is contained in:
co-authored by
Lukas Wirth
parent
44953375cc
commit
360d4db87c
@@ -887,10 +887,10 @@ macro_rules! maybe {
|
||||
(|| $block)()
|
||||
};
|
||||
(async $block:block) => {
|
||||
(|| async $block)()
|
||||
(async || $block)()
|
||||
};
|
||||
(async move $block:block) => {
|
||||
(|| async move $block)()
|
||||
(async move || $block)()
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user