terminal/src/cascadia/WindowsTerminal
Dustin L. Howett (MSFT) cc371b0531
Initialize Windows Terminal in STA (#4505)
This fixes a crash caused by Narrator starting *before* terminal.

Fixes #2907.

For context,

```
// We must initialize the main thread as a single-threaded apartment before
// constructing any Xaml objects. Failing to do so will cause some issues
// in accessibility somewhere down the line when a UIAutomation object will
// be queried on the wrong thread at the wrong time.
// We used to initialize as STA only _after_ initializing the application
// host, which loaded the settings. The settings needed to be loaded in MTA
// because we were using the Windows.Storage APIs. Since we're no longer
// doing that, we can safely init as STA before any WinRT dispatches.
```
2020-02-10 20:16:08 +00:00
..
AppHost.cpp Remove unneeded c_str() conversions (#4358) 2020-01-27 10:23:13 -08:00
AppHost.h Add support for commandline args to wt.exe (#4023) 2020-01-27 15:34:12 +00:00
BaseWindow.h Use standard 1px window borders on NC Island Window (#3394) 2019-11-04 15:45:40 -08:00
IslandWindow.cpp Snap to character grid when resizing window (#3181) 2020-01-08 13:19:23 -08:00
IslandWindow.h Snap to character grid when resizing window (#3181) 2020-01-08 13:19:23 -08:00
main.cpp Initialize Windows Terminal in STA (#4505) 2020-02-10 20:16:08 +00:00
NonClientIslandWindow.cpp Snap to character grid when resizing window (#3181) 2020-01-08 13:19:23 -08:00
NonClientIslandWindow.h Snap to character grid when resizing window (#3181) 2020-01-08 13:19:23 -08:00
packages.config update to the latest MUX prerelease (#4024) 2019-12-19 18:16:07 +00:00
pch.cpp Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
pch.h Add support for commandline args to wt.exe (#4023) 2020-01-27 15:34:12 +00:00
resource.h Add support for commandline args to wt.exe (#4023) 2020-01-27 15:34:12 +00:00
WindowsTerminal.def Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
WindowsTerminal.manifest TURNS OUT CASE SENSITIVITY IS IMPORTANT (#2481) 2019-08-20 11:16:06 -07:00
WindowsTerminal.rc Add support for commandline args to wt.exe (#4023) 2020-01-27 15:34:12 +00:00
WindowsTerminal.vcxproj update to the latest MUX prerelease (#4024) 2019-12-19 18:16:07 +00:00
WindowUiaProvider.cpp Upgrade UiaProviders to WRL::ComPtr (#3051) 2019-11-21 16:08:37 -08:00
WindowUiaProvider.hpp Upgrade UiaProviders to WRL::ComPtr (#3051) 2019-11-21 16:08:37 -08:00