zed/crates/gpui/src
Jakob Hellermann e54455bcad
Call OleInitialize to fix DirectWrite in TestPlatform on windows (#12289)
Running the tests on windows currently fails for every gpui test using
the `TestPlatform` with

```rs
called `Result::unwrap()` on an `Err` value: CoInitialize has not been called. (0x800401F0)
```
trying to call `CoCreateInstance`in the `DirectWriteComponent`.

The `WindowsPlatform` calls
[`OleInitialize`](https://learn.microsoft.com/de-de/windows/win32/api/ole2/nf-ole2-oleinitialize)
which internally calls `CoInitializeEx` so I just copied that to the
`TestPlatform`.

Release Notes:

- N/A
2024-05-26 16:56:09 -07:00
..
app Fix double lease panic in Quote Selection command (#12217) 2024-05-23 12:14:34 -07:00
elements Introduce custom fold placeholders (#12214) 2024-05-23 15:22:30 -06:00
keymap
platform Call OleInitialize to fix DirectWrite in TestPlatform on windows (#12289) 2024-05-26 16:56:09 -07:00
text_system Introduce custom fold placeholders (#12214) 2024-05-23 15:22:30 -06:00
window
action.rs
app.rs Add "new window" option to the dock menu (#12067) 2024-05-20 17:08:14 -06:00
arena.rs
asset_cache.rs
assets.rs
bounds_tree.rs
color.rs Use checked str slices in Rgba::TryFrom<str> (#12097) 2024-05-24 12:32:46 +03:00
element.rs
executor.rs Make block_with_timeout more robust (#11670) 2024-05-10 13:10:02 -06:00
geometry.rs
global.rs Make a macro for less boilerplate when moving variables (#12182) 2024-05-22 22:07:29 -07:00
gpui.rs gpui: Improve Global ergonomics (#11923) 2024-05-16 12:47:43 -04:00
input.rs
interactive.rs chore: Fix refining_impl_trait lint occurences (#11979) 2024-05-17 16:58:22 +02:00
key_dispatch.rs
keymap.rs
platform.rs Add "new window" option to the dock menu (#12067) 2024-05-20 17:08:14 -06:00
prelude.rs
scene.rs
shared_string.rs
shared_uri.rs
style.rs
styled.rs
subscription.rs
svg_renderer.rs
taffy.rs
test.rs
text_system.rs
util.rs Prompt library updates (#11988) 2024-05-22 18:04:47 -04:00
view.rs Introduce Editor::insert_flaps and Editor::remove_flaps (#12096) 2024-05-21 20:23:37 +02:00
window.rs x11: Implement various window functions (#12070) 2024-05-26 16:43:24 -07:00