Skip to content

Commit

Permalink
Rename the thing named test to have a better name
Browse files Browse the repository at this point in the history
  • Loading branch information
DHowett committed Nov 16, 2023
1 parent 95ef16c commit 6637bee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cascadia/QueryExtension/ExtensionPalette.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ namespace winrt::Microsoft::Terminal::Query::Extension::implementation
std::wstring codeBlock;
bool inCodeBlock = false;
const auto time = _getCurrentLocalTimeHelper();
std::vector<IInspectable> test;
std::vector<IInspectable> messageParts;

while (std::getline(ss, line))
{
Expand All @@ -317,7 +317,7 @@ namespace winrt::Microsoft::Terminal::Query::Extension::implementation
{
inCodeBlock = false;
const auto chatMsg = winrt::make<ChatMessage>(winrt::hstring{ std::move(codeBlock) }, false, true);
test.push_back(chatMsg);
messageParts.push_back(chatMsg);
codeBlock.clear();
continue;
}
Expand All @@ -332,12 +332,12 @@ namespace winrt::Microsoft::Terminal::Query::Extension::implementation
else
{
const auto chatMsg = winrt::make<ChatMessage>(winrt::hstring{ line }, false, false);
test.push_back(chatMsg);
messageParts.push_back(chatMsg);
}
}
}

const auto responseGroupedMessages = winrt::make<GroupedChatMessages>(time, false, _ProfileName, winrt::single_threaded_vector(std::move(test)));
const auto responseGroupedMessages = winrt::make<GroupedChatMessages>(time, false, _ProfileName, winrt::single_threaded_vector(std::move(messageParts)));
_messages.Append(responseGroupedMessages);
}

Expand Down

0 comments on commit 6637bee

Please sign in to comment.