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:
parent
44953375cc
commit
360d4db87c
2 changed files with 66 additions and 43 deletions
|
@ -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)()
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue