Skip to content

Commit

Permalink
No longer clear the input box when Terminal chat is dismissed (#18386)
Browse files Browse the repository at this point in the history
## Summary of the Pull Request
Keeps any text in the input box around if Terminal Chat is dismissed.
The original behaviour was consistent with the way the command palette
works but it does not quite make sense for the chat.

## Validation Steps Performed
Input is not lost when the chat pane is closed

## PR Checklist
- [x] Closes #18151 
- [ ] Tests added/passed
- [ ] Documentation updated
- If checked, please file a pull request on [our docs
repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx
- [ ] Schema updated (if necessary)
  • Loading branch information
PankajBhojwani authored Jan 6, 2025
1 parent d40129a commit b0c702e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/cascadia/QueryExtension/ExtensionPalette.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,6 @@ namespace winrt::Microsoft::Terminal::Query::Extension::implementation
void ExtensionPalette::_close()
{
Visibility(Visibility::Collapsed);

// Clear the text box each time we close the dialog. This is consistent with VsCode.
_queryBox().Text(winrt::hstring{});
}

ChatMessage::ChatMessage(winrt::hstring content, bool isQuery) :
Expand Down

0 comments on commit b0c702e

Please sign in to comment.