Commit Graph

141480 Commits

Author SHA1 Message Date
Megan Rogge
a8e321dca0 move registering of actions/kbs out of progress part (#278844) 2025-11-22 02:18:36 +00:00
Copilot
61915ccbab Show disabled Agent mode with policy indicator instead of hiding it (#278650)
* Initial plan

* Add support for showing disabled Agent mode with policy indicator

- Extended IChatModeService with isAgentModeDisabledByPolicy() method
- Added IConfigurationService to ChatModeService to check policy values
- Updated getBuiltinModes() to always include Agent mode
- Modified ModePickerActionItem to show lock icon and "Managed by your organization" tooltip for disabled Agent mode
- Disabled modes are greyed out and cannot be selected

Co-authored-by: cwebster-99 <60238438+cwebster-99@users.noreply.github.com>

* Filter out disabled Agent mode from mode cycling

- Updated getNextMode() to skip Agent mode when disabled by policy
- Prevents users from accidentally switching to disabled mode via keyboard shortcuts

Co-authored-by: cwebster-99 <60238438+cwebster-99@users.noreply.github.com>

* Update tests for Agent mode policy handling

- Updated test to expect Agent mode always present in builtin modes
- Added test for isAgentModeDisabledByPolicy() method
- Added IConfigurationService to test setup

Co-authored-by: cwebster-99 <60238438+cwebster-99@users.noreply.github.com>

* Fixing lock and grey rendering for agent

* Disabled custom agents and refactor

* polish

* code dupe

* revert test

* Update src/vs/workbench/contrib/chat/test/common/mockChatModeService.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/vs/workbench/contrib/chat/browser/chatInputPart.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* thanks copilot suggest edit

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: cwebster-99 <60238438+cwebster-99@users.noreply.github.com>
Co-authored-by: cwebster-99 <cowebster@microsoft.com>
Co-authored-by: Josh Spicer <23246594+joshspicer@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-21 17:51:50 -08:00
Josh Spicer
ab2f720670 use h() in chatContinueInAction (#278881)
use h()
2025-11-22 01:15:36 +00:00
Tyler James Leonhardt
80f75cffa0 Don't unregister built-in providers on 403 (#278890)
related to https://github.com/microsoft/vscode/issues/278875
2025-11-21 17:11:03 -08:00
Copilot
38beac69a4 Add tests for eligibleForAutoApproval with legacyToolReferenceFullNames (#278631)
* Initial plan

* Add comprehensive tests for eligibleForAutoApproval with legacyToolReferenceFullNames

Co-authored-by: joshspicer <23246594+joshspicer@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: joshspicer <23246594+joshspicer@users.noreply.github.com>
2025-11-21 17:05:50 -08:00
Paul
3fb7279918 Update toolsets (#278628) 2025-11-21 17:05:07 -08:00
Osvaldo Ortega
9152d6c5a1 Adding progress description to all session providers (#278891)
* Adding progress description to all providers

* Review comments
2025-11-22 00:33:56 +00:00
Josh Spicer
1f6cf55fbf Show all 'continue on' targets on handoff actions (#278690)
* implement https://github.com/microsoft/vscode/issues/278484#issuecomment-3560845119

* revert file

* always show delegation targets in menu by reading from chatSessionsService

* Fix memory leak in chat suggest next widget button disposables (#278880)

* Initial plan

* Fix memory leak in chatSuggestNextWidget by managing button disposables

Co-authored-by: joshspicer <23246594+joshspicer@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: joshspicer <23246594+joshspicer@users.noreply.github.com>

* Add showContinueOn flag to control handoff delegation dropdown per-handoff (#278815)

* Initial plan

* Add showContinueOn flag to control handoff dropdown visibility

Co-authored-by: joshspicer <23246594+joshspicer@users.noreply.github.com>

* Add tests for showContinueOn flag

Co-authored-by: joshspicer <23246594+joshspicer@users.noreply.github.com>

* Move showContinueOn flag from agent-level to per-handoff

Co-authored-by: joshspicer <23246594+joshspicer@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: joshspicer <23246594+joshspicer@users.noreply.github.com>

* tweak

* fix file validation

* vertical seperator for button

* with fixed test

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
2025-11-21 15:34:10 -08:00
Daniel Imms
49729c6e6c Merge pull request #278877 from microsoft/tyriar/278871
Fix HoverStyle.Mouse when setupDelayedHover is used
2025-11-21 15:06:02 -08:00
Matt Bierner
1381fbc920 Merge pull request #278843 from mjbvz/dev/mjbvz/mysterious-vulture
Pick up latest test-web
2025-11-21 14:00:20 -08:00
Josh Spicer
6daa8fa48f Add delegate button on untitled prompt files (#278811)
* prototype

* add location

* add in known issue as cast for some reason

* tidy
2025-11-21 21:47:42 +00:00
Matt Bierner
82e3ec2f1f Workaround https://github.com/microsoft/playwright/issues/37418 2025-11-21 13:36:46 -08:00
Daniel Imms
1a11a772c2 Fix HoverStyle.Mouse when setupDelayedHover is used
Fixes #278871
2025-11-21 13:32:56 -08:00
Martin Aeschlimann
538db6134e tools sets: set the various github server names as aliases for github (#278863)
* tools sets: set the various github server names as aliases for github

* Update src/vs/workbench/contrib/chat/browser/languageModelToolsService.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* use constants for github/playwright aliases

* update

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-21 21:28:58 +00:00
Rob Lourens
1f32ba92d2 Fix possible NPE when opening chat editor (#278867)
Fix #278790
2025-11-21 21:23:11 +00:00
Copilot
8ca062e337 Fix multiple items showing selection in tree when clicking twisties (#276847)
* Initial plan

* Fix: Prevent multiple items from having focus in tree when clicking twisties

Replace focus instead of merging when splicing nodes with focus trait

Co-authored-by: dmitrivMS <9581278+dmitrivMS@users.noreply.github.com>

* Add test for focus behavior when collapsing/expanding tree nodes

Co-authored-by: dmitrivMS <9581278+dmitrivMS@users.noreply.github.com>

* Revert "Fix: Prevent multiple items from having focus in tree when clicking twisties"

This reverts commit 644907542e.

* Revert "Add test for focus behavior when collapsing/expanding tree nodes"

This reverts commit 0c85d5ad06.

* Updates

* PR feedback, remove tests

* PR feedback

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: dmitrivMS <9581278+dmitrivMS@users.noreply.github.com>
Co-authored-by: Dmitriy Vasyura <dmitriv@microsoft.com>
2025-11-21 21:17:06 +00:00
Copilot
157bd3e29d Add remove button to Command Palette recently used commands (#278276)
* Add remove button for recently used commands in Command Palette

Co-authored-by: jruales <1588988+jruales@users.noreply.github.com>

* Fix button order and TypeScript compilation errors

Co-authored-by: jruales <1588988+jruales@users.noreply.github.com>

* Simplify by using isInHistory instead of isRecentlyUsedSection

Co-authored-by: jruales <1588988+jruales@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jruales <1588988+jruales@users.noreply.github.com>
2025-11-21 21:04:07 +00:00
Matt Bierner
3db48f11ef Merge branch 'main' into dev/mjbvz/mysterious-vulture 2025-11-21 12:56:50 -08:00
Connor Peet
9243a001aa chat: cleanup most flagrant usages of IChatWidgetService.lastFocusedWidget (#278861)
Closes https://github.com/microsoft/vscode/issues/278638 mostly
2025-11-21 20:52:26 +00:00
Dmitriy Vasyura
40c75b98e0 Merge pull request #278411 from microsoft/dev/dmitriv/micro-perf
Micro performance prompt and improvements for Map usage in src/vs/base
2025-11-21 12:38:10 -08:00
Megan Rogge
3ea5d275a5 polish command decorations for inline chat (#278455) 2025-11-21 12:37:36 -08:00
Tyler James Leonhardt
7dbfd43384 Fix vscode-playwright-mcp building & improve tools listed in demonstrate (#278856)
1. the mcp server wasn't working... perhaps due to our js -> ts build move... or a bump in a npm package. Either way, good now.
2. I list out all tools across Copilot CLI & VS Code that would apply in this case... there's some overlap for sure... but I want to make sure we're golden for any renamed tools situations.
2025-11-21 20:31:14 +00:00
Dmitriy Vasyura
cb5575cfee Merge branch 'main' into dev/dmitriv/micro-perf 2025-11-21 12:15:21 -08:00
Connor Peet
c953458da6 Merge pull request #278846 from microsoft/connor4312/unified-chat-history
chat: unify history in different editors
2025-11-21 12:14:55 -08:00
Dmitriy Vasyura
c23fbd1502 Merge pull request #278727 from microsoft/dev/dmitriv/eslint-map-delete
Add eslint rule to prevent Map.has call immediately before Map.delete
2025-11-21 12:04:41 -08:00
Matt Bierner
417b688aba Merge pull request #278820 from mjbvz/dev/mjbvz/apparent-caterpillar
Convert a few more build scripts to TypeScript
2025-11-21 11:51:17 -08:00
Connor Peet
2db1638d65 comments 2025-11-21 11:50:12 -08:00
Bryan Chen
16d34fb7f7 Merge pull request #273805 from microsoft/brchen/custom-chat-mode-keybinding
chat: add command for switching to custom chat agent
2025-11-21 11:43:05 -08:00
Dmitriy Vasyura
535f6eaa0f Merge branch 'main' into dev/dmitriv/eslint-map-delete 2025-11-21 11:34:34 -08:00
Matt Bierner
65a40cb420 Convert for more reference to .ts 2025-11-21 11:27:29 -08:00
Connor Peet
44ead28722 chat: unify history in different editors
Previously history was read and updated individually by chat components,
which could cause some history to get lost if multiple chat editors
were open.

This adds a ChatHistoryNavigator which is a view on the chat history.
It reacts when new entries are appended, preserving the history position
of other editors while allowing editor-local modifications via its
'overlay' (which is also used to keep the current in-progress edit
when navigating back in history).

Also brings back _getFilteredEntry which was lost in my earlier refactor.

Refs #277318
2025-11-21 11:26:10 -08:00
Matt Bierner
a1c3bc91fd Pick up latest test-web
Supports our `.ts` build scripts
2025-11-21 11:21:58 -08:00
Megan Rogge
80b14a0b9e call focus instance on focus action (#278836) 2025-11-21 19:08:58 +00:00
Megan Rogge
f1b58ef768 fix output monitor bug (#278824)
* likely fix #278478

* handle when instance is disposed
2025-11-21 10:21:46 -08:00
Zhichao Li
e336d72e91 Merge pull request #278663 from microsoft/zhichli/terminalzoom
Fix terminal mouse wheel zoom interference with scrollbar
2025-11-21 10:16:50 -08:00
Connor Peet
5222f59029 chat: fix md chat response not being fully written out (#278702)
* chat: fix md chat response not being fully written out

Refs #277214

* try fix compile err

* actual fix?
2025-11-21 18:12:09 +00:00
Rob Lourens
8c0fd68d73 Respect preserveFocus properly when opening chats (#278821) 2025-11-21 17:53:10 +00:00
Matt Bierner
7762210ebd Merge pull request #278565 from microsoft/aeschli/witty-pike-129
CodeMapper: Migrate chat implementation to use URIs instead of string ids to track sessions
2025-11-21 09:49:08 -08:00
Matt Bierner
f0e7fe3775 Convert a few more build scripts to TypeScript
For #277526
2025-11-21 09:26:54 -08:00
Martin Aeschlimann
1046ccf4af mcp server: make sure tool set referenceName has no spaces (#278806) 2025-11-21 09:14:05 -08:00
Benjamin Christopher Simmonds
ded1d5e481 Merge pull request #278814 from microsoft/benibenj/semantic-leech
Small tweaks to long distance hint
2025-11-21 18:07:11 +01:00
BeniBenj
6b161525b5 nit 2025-11-21 17:45:19 +01:00
BeniBenj
ede3295a6e nit 2025-11-21 17:44:56 +01:00
Benjamin Pasero
daaf36b4f5 agent sessions - empty description for local chats that have not started (#278804)
* agent sessions - empty description for local chats that have not started

* .
2025-11-21 16:37:13 +00:00
Benjamin Pasero
8161a43cf5 Merge pull request #278807 from microsoft/ben/rural-dolphin
debt - reduce explicit `any`
2025-11-21 17:29:25 +01:00
Benjamin Pasero
aaa1a999ef debt - reduce explicit any 2025-11-21 17:10:25 +01:00
Benjamin Pasero
691ea7ce15 Cannot read properties of undefined (reading 'selectedStep'): (#276097) (#278802) 2025-11-21 15:55:20 +00:00
Ladislau Szomoru
a73588288a SCM - refactor history item hover for the graph (#278778)
* SCM - refactor history item tooltip

* Extract the hover code into a separate file

* SCM - add references into the hover

* Pull request feedback

* Fix compilation errors
2025-11-21 16:48:43 +01:00
Aaron Munger
ffc4b9540b don't mirror appending output items (#278458)
dont mirror appending output items
2025-11-21 07:40:52 -08:00
Benjamin Pasero
51eff8a47c Agent Sessions: revisit chat editor auto locking (fix #275248) (#278797) 2025-11-21 15:32:29 +00:00