* Initial plan
* Improve presentation of regex-based searches in agent mode
- Updated FindTextInFilesTool to indicate "regex" vs "text" in search messages
- Updated Claude grep tool formatter to show "Searched for regex"
- Added test for literal text search message format
- Updated existing test to match new regex message format
Co-authored-by: roblourens <323878+roblourens@users.noreply.github.com>
* Make regex/text keywords localizable via l10n
- Moved 'regex' and 'text' keywords inside l10n.t() calls
- This allows localization system to translate or keep terms as appropriate per language
- Addresses localization concern about whether 'regex' should be localized
Co-authored-by: roblourens <323878+roblourens@users.noreply.github.com>
* Refactor nested ternary operators into helper method
- Extract message generation logic into getResultMessage helper
- Improves code readability and maintainability
- All tests passing
Co-authored-by: roblourens <323878+roblourens@users.noreply.github.com>
* Update ChatSessionContentProvider test snapshot
- Updated snapshot to reflect new grep message format
- Changed from "Searched text for" to "Searched for regex"
- All tests now passing (8/8)
Co-authored-by: roblourens <323878+roblourens@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: roblourens <323878+roblourens@users.noreply.github.com>
* add log
* try streaming false
* try undefined
* correct fix
* correct fix 2
* fixxxx
* consume resp just once
* fix message
* no replacement of content
* clean up but need to make stream configurable for byok
* update
* update
This fixes a race condition that can happen in LM results that contain
multiple edit tool calls. The emission and application of edits is
async, and so it is possible that an edit can be emitted and the next
edit generated before the first edit's changes are propagated to the
extension host's model.
This resolves the issue by keeping, updating, and reusing snapshotted
documents on each turn's prompt context.
cc @DonJayamanne for notebook stuff. This is a little shakier but it
seems to work (and I know NB prefers the separate notebook edit tool
anyway.)
* Bring back Copilot panel in chat
* Use ICompletionsContextService
* WIP
* Convert to service accessor
* More accessor work
* Some more accessor adaption
* Remove command from UI
* fix service accessors
---------
Co-authored-by: BeniBenj <besimmonds@microsoft.com>
* Add Anthropic web-search tool support and tool result handling
* Add TODO to handle citations as specialized Citation part
* Update src/extension/byok/vscode-node/anthropicProvider.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Guard against missing pendingServerToolCall.toolId when processing web_search tool results in Anthropic provider
* Report citation metadata as LanguageModelToolResultPart for web_search citations in Anthropic provider
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>