Skip to content

Commit 3252b7d

Browse files
committed
Merge branch 'main' into dev/cazamor/sui/search
2 parents 22ba243 + 7f91e94 commit 3252b7d

File tree

63 files changed

+566
-541
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+566
-541
lines changed

.github/actions/spelling/expect/expect.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,7 @@ minkernel
10171017
MINMAXINFO
10181018
minwin
10191019
minwindef
1020+
misprediction
10201021
MMBB
10211022
mmcc
10221023
MMCPL

build/pipelines/templates-v2/job-build-project.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,11 @@ jobs:
133133
$SignFragments += "wpfdotnet"
134134
}
135135
If ([bool]::Parse("${{ parameters.buildWPF }}")) {
136-
$BuildTargets += "Terminal\Control\Microsoft_Terminal_Control"
136+
$BuildTargets += "Terminal\Control\TerminalControl"
137137
$SignFragments += "wpf"
138138
}
139139
If ([bool]::Parse("${{ parameters.buildConPTY }}")) {
140-
$BuildTargets += "Conhost\Host_EXE;Conhost\winconpty_DLL"
140+
$BuildTargets += "Conhost\Host_EXE;Conhost\winconptydll"
141141
$SignFragments += "conpty"
142142
}
143143
Write-Host "Targets: $($BuildTargets -Join ";")"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Same as the official arm64-windows-static triplet
2+
set(VCPKG_TARGET_ARCHITECTURE arm64)
3+
set(VCPKG_CRT_LINKAGE static)
4+
set(VCPKG_LIBRARY_LINKAGE static)
5+
6+
# ...but with explicit platform toolset, so that future toolsets
7+
# aren't automatically picked up (it defaults to the latest one).
8+
set(VCPKG_PLATFORM_TOOLSET v143)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
# Same as the official arm64-windows-static triplet
12
set(VCPKG_TARGET_ARCHITECTURE arm64)
23
set(VCPKG_CRT_LINKAGE static)
34
set(VCPKG_LIBRARY_LINKAGE static)
45

6+
# ...but with explicit platform toolset, so that future toolsets
7+
# aren't automatically picked up (it defaults to the latest one).
8+
set(VCPKG_PLATFORM_TOOLSET v143)
9+
510
set(VCPKG_CXX_FLAGS /fsanitize=address)
611
set(VCPKG_C_FLAGS /fsanitize=address)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
# Same as the official x64-windows-static triplet
12
set(VCPKG_TARGET_ARCHITECTURE x64)
23
set(VCPKG_CRT_LINKAGE static)
34
set(VCPKG_LIBRARY_LINKAGE static)
45

6+
# ...but with explicit platform toolset, so that future toolsets
7+
# aren't automatically picked up (it defaults to the latest one).
8+
set(VCPKG_PLATFORM_TOOLSET v143)
9+
510
set(VCPKG_CXX_FLAGS /fsanitize=address)
611
set(VCPKG_C_FLAGS /fsanitize=address)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
# Same as the official x86-windows-static triplet
12
set(VCPKG_TARGET_ARCHITECTURE x86)
23
set(VCPKG_CRT_LINKAGE static)
34
set(VCPKG_LIBRARY_LINKAGE static)
45

6+
# ...but with explicit platform toolset, so that future toolsets
7+
# aren't automatically picked up (it defaults to the latest one).
8+
set(VCPKG_PLATFORM_TOOLSET v143)
9+
510
set(VCPKG_CXX_FLAGS /fsanitize=address)
611
set(VCPKG_C_FLAGS /fsanitize=address)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Same as the official x64-windows-static triplet
2+
set(VCPKG_TARGET_ARCHITECTURE x64)
3+
set(VCPKG_CRT_LINKAGE static)
4+
set(VCPKG_LIBRARY_LINKAGE static)
5+
6+
# ...but with explicit platform toolset, so that future toolsets
7+
# aren't automatically picked up (it defaults to the latest one).
8+
set(VCPKG_PLATFORM_TOOLSET v143)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Same as the official x86-windows-static triplet
2+
set(VCPKG_TARGET_ARCHITECTURE x86)
3+
set(VCPKG_CRT_LINKAGE static)
4+
set(VCPKG_LIBRARY_LINKAGE static)
5+
6+
# ...but with explicit platform toolset, so that future toolsets
7+
# aren't automatically picked up (it defaults to the latest one).
8+
set(VCPKG_PLATFORM_TOOLSET v143)

src/cascadia/TerminalApp/DebugTapConnection.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,25 +120,25 @@ namespace winrt::Microsoft::TerminalApp::implementation
120120
return ConnectionState::Failed;
121121
}
122122

123-
void DebugTapConnection::_OutputHandler(const std::wstring_view str)
123+
void DebugTapConnection::_OutputHandler(const winrt::array_view<const char16_t> str)
124124
{
125-
auto output = til::visualize_control_codes(str);
125+
auto output = til::visualize_control_codes(winrt_array_to_wstring_view(str));
126126
// To make the output easier to read, we introduce a line break whenever
127127
// an LF control is encountered. But at this point, the LF would have
128128
// been converted to U+240A (␊), so that's what we need to search for.
129129
for (size_t lfPos = 0; (lfPos = output.find(L'\u240A', lfPos)) != std::wstring::npos;)
130130
{
131131
output.insert(++lfPos, L"\r\n");
132132
}
133-
TerminalOutput.raise(output);
133+
TerminalOutput.raise(winrt_wstring_to_array_view(output));
134134
}
135135

136136
// Called by the DebugInputTapConnection to print user input
137137
void DebugTapConnection::_PrintInput(const std::wstring_view str)
138138
{
139139
auto clean{ til::visualize_control_codes(str) };
140140
auto formatted{ wil::str_printf<std::wstring>(L"\x1b[91m%ls\x1b[m", clean.data()) };
141-
TerminalOutput.raise(formatted);
141+
TerminalOutput.raise(winrt_wstring_to_array_view(formatted));
142142
}
143143

144144
// Wire us up so that we can forward input through

src/cascadia/TerminalApp/DebugTapConnection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace winrt::Microsoft::TerminalApp::implementation
3131

3232
private:
3333
void _PrintInput(const std::wstring_view data);
34-
void _OutputHandler(const std::wstring_view str);
34+
void _OutputHandler(const winrt::array_view<const char16_t> str);
3535

3636
winrt::Microsoft::Terminal::TerminalConnection::ITerminalConnection::TerminalOutput_revoker _outputRevoker;
3737
winrt::Microsoft::Terminal::TerminalConnection::ITerminalConnection::StateChanged_revoker _stateChangedRevoker;

0 commit comments

Comments
 (0)