Commit Graph

131419 Commits

Author SHA1 Message Date
Benjamin Pasero 38e2bc4e68 chat - rename setup agent back to original name (#244429) 2025-03-24 10:24:57 +01:00
Sandeep Somavarapu 58d414da2e fix leak (#244427) 2025-03-24 10:06:48 +01:00
Johannes Rieken 28d95e61a1 fixes https://github.com/microsoft/vscode-copilot/issues/14688 (#244425) 2025-03-24 09:36:35 +01:00
Johannes Rieken a136d37a14 disable code lens while rewriting file from edits (#244424)
fixes https://github.com/microsoft/vscode-copilot/issues/12391
2025-03-24 09:05:39 +01:00
Don Jayamanne 05e0c0f0d4 Save on accept of notebook (#244414) 2025-03-24 07:21:13 +01:00
Rob Lourens eb7d159b23 Capitalize labels (#244417)
* Capitalize label

* Capitalize
2025-03-24 07:03:56 +01:00
Rob Lourens 21f29be465 Restore unresolved edit session entries to disk (#244415)
Fix #244403
2025-03-24 06:17:07 +01:00
Don Jayamanne 299b150bd5 Ensure internal Ids are in sync for new cells inseretd by user (#244405)
* Ensure internal Ids are in sync for new cells inseretd by user

* Updates

* oops
2025-03-24 15:27:23 +11:00
Don Jayamanne 5fcb240e8d Adjust cell indexes when inserting a new cell (#244402)
* Adjust cell indexes when inserting a new cell

* Updates

* Fixes
2025-03-24 03:36:12 +01:00
Rob Lourens 52bdb7a756 Fix issues with moving chat editors (#244401)
Fix #244095
2025-03-23 17:11:40 -07:00
Rob Lourens 243307148e Fix request attachment pill layout issue (#244399)
Because this shares styles with the attachment pills in the input, although they need a slightly different layout. So restoring the previous styles and scoping the fix from #244327 to just the input
2025-03-23 17:10:54 -07:00
Rob Lourens 48d1b0c47d Fix issues with CollapsedCodeBlock rendering (#244398) 2025-03-23 17:10:31 -07:00
Bhavya U 89eac81178 accessibility: improve aria-labels for step completion checkboxes (#244397) 2025-03-23 22:56:35 +01:00
Rob Lourens 760358a28d Fix scrolling after switching modes (#244396)
Ensure that scroll-lock always matches the current mode.
Also always set the last response min height in all modes, it looks better even when still autoscrolling
2025-03-23 22:55:54 +01:00
Rob Lourens 77ee3930c6 Fix double-disposing edit session (#244395)
And fix inline chat 2
This is complicated. The way that I expect it to work now
- The ChatModel creates the editing session for the right locations and based on the isGlobalEditingSession flag passed in
- stop doesn't dispose the editing session, so it doesn't get disposed twice, but it gets disposed when the ChatModel is disposed
2025-03-23 22:09:21 +01:00
João Moreno 1a6fb8ba40 Fix inno updater signing issue (#244394)
* Reapply "bump inno_updater" (#244284)

This reverts commit dc289883be.

* hack

* hm

* consume inno unsigned

* 💄
2025-03-23 20:46:58 +01:00
Benjamin Pasero a2aab5aafc chat - setup tweaks (#244393) 2025-03-23 20:40:58 +01:00
Connor Peet d84f5da4ad chat: improve tool selection rememberance (#244391)
Previously we just stored tool IDs that were selected. The downside is
any new tools would never get selected, including new built-in ones,
which could cause issues.

This changes the model to instead remember the tools or tool sources
that were unselected, such that new data sources or new tools added to
existing undisabled data sources would get selected.
2025-03-23 19:23:26 +01:00
Rob Lourens 79c28fc19f Go back to original edits mode in unified view with all models (#244354)
By default, adding setting chat.edits2.enabled to control it.
Disallow switching from edits mode to others, unless using edits2.
2025-03-23 07:43:36 +01:00
Rob Lourens 3034b2cb89 Render breaks in request messages in the way that users expect (#244352)
* Render breaks in request messages in the way that users expect

* Fix history for sessions that were migrated from the edit view
2025-03-22 23:06:14 -07:00
Rob Lourens 1fbb64aee3 Align editing session creation with ChatModel (#244350)
* Align editing session creation with ChatModel

* Fix test

* Fix test
2025-03-23 06:05:21 +00:00
Rob Lourens ddbcb6cfae Fix bad chat input layout after adding context that wraps (#244351)
From #244327
2025-03-22 23:04:55 -07:00
Ladislau Szomoru 94f0f50f9e Git - try a different separator in the ref picker (#244340) 2025-03-22 15:56:29 -07:00
Rob Lourens e27611a063 Handle disabled chat agent in unified chat view properly (#244339)
* Avoid looping in the setup agent

* Handle disabled chat agent in unified chat view properly

* Revert 'when' type change
2025-03-22 15:56:03 -07:00
Rob Lourens bf7d438996 Fix codeblock rendering after reload (#244326)
* Fix codeblock rendering after reload
Meant to remove the `renderCodeBlockPills` flag with #244190

* And this one

* Fix build
2025-03-22 17:06:04 +00:00
Sandeep Somavarapu 4d00d4a6ab move to desktop contributions (#244333) 2025-03-22 13:46:36 +01:00
Rob Lourens 2bdf282f0a Pass model to tools (#244323)
* Pass model to tools
When tools make requests, they should use the right model. So we
- save the model id on the request
- look it up when the tool is invoked
- resolve it to a LanguageModelChat in the EH

* Fix build
2025-03-22 06:42:06 +00:00
Rob Lourens 6e2fab740e Fix some attachment styling issues (#244327)
- Fix flickering when changing modes- `addFilesToolbar.onDidChangeMenuItems` can change the height of the input, so it should fire the event so ChatWidget can relayout
- Wrap all the different types of buttons naturally
- Make the toolbar buttons
2025-03-22 07:41:45 +01:00
Tyler James Leonhardt bdb7cc4f0c Bump msal-runtime (#244321)
Fixes https://github.com/microsoft/vscode/issues/240307
2025-03-21 20:56:33 -07:00
Connor Peet 3c1c857b14 mcp: make discovery config an object instead (#244320)
* mcp: make discovery config an object instead

* lint
2025-03-22 02:14:04 +01:00
Oleg Solomko f8458a26ca refactor config constants of reusable prompts 2025-03-21 17:06:16 -07:00
Oleg Solomko fb6d926e64 enable "reusable prompts" language features for custom instruction files 2025-03-21 17:06:01 -07:00
Connor Peet 783633233e mcp: more fine-grained control on auto-discovered servers (#244318)
Fixes #244306
2025-03-21 16:59:21 -07:00
Connor Peet b78990bb60 mcp: add some basic telemetry (#244316)
Closes https://github.com/microsoft/vscode-copilot/issues/14530
2025-03-21 16:57:45 -07:00
Connor Peet 00dd1aec68 chat: remember tool selecton across reloads (#244314)
Closes #244062
2025-03-21 23:44:00 +01:00
Justin Chen aee64540d1 disable feedback options when setting is enabled (#244285)
* disable feedback

* swap
2025-03-21 15:36:34 -07:00
Peng Lyu bd3dfc4726 Fix search view refresh with AI searches (#244313)
fix search view refresh with ai searches
2025-03-21 15:13:43 -07:00
Connor Peet a4af7e7a7b Merge pull request #244308 from microsoft/connor4312/mcp-bat-cmd-fixes
mcp: fix issues with bat/cmd based mcp commands
2025-03-21 14:55:03 -07:00
Aaron Munger 3286791a7e fix previous nav at first change in a cell (#244312)
Co-authored-by: amunger <>
2025-03-21 22:43:19 +01:00
Connor Peet 8882b2c8da fixup tests 2025-03-21 14:39:28 -07:00
Connor Peet dd5071b55b Merge pull request #244187 from microsoft/connor4312/issue244063
mcp: fix cmd+enter for tools Continue button isn't working
2025-03-21 14:22:36 -07:00
Connor Peet f521976b0d Merge remote-tracking branch 'origin/main' into connor4312/issue244063 2025-03-21 14:09:58 -07:00
Oleg Solomko c6c31c38aa add a code comment 2025-03-21 14:08:29 -07:00
Oleg Solomko 10b7df8c5f add the new user data sync method to check for explicit resource enablement 2025-03-21 14:08:29 -07:00
Oleg Solomko f6e17cdbea add suggestion UI to enable synchronization of user prompts 2025-03-21 14:08:29 -07:00
Connor Peet c6f608c971 mcp: fix issues with bat/cmd based mcp commands
Applies the necessary handling post Node.js CVE-2024-27980 to spawn
bat/cmd processes.

Some of these (npx in fnm for example) are based on the directory
they're run in, which seem to require referring to them by their
absolute path. Do so. And update `findExecutable` to correctly look for
PATHEXT's on Windows.
2025-03-21 14:04:51 -07:00
Megan Rogge 2b94f42121 align the look of paths for executables/specs in terminal completions (#244298)
fix #242191
2025-03-21 14:00:33 -07:00
Megan Rogge b6fe17c848 add kind for specs so icon is correct (#244301)
fix #244300
2025-03-21 13:59:53 -07:00
Megan Rogge 9fdcce706b hide suggest widget on scroll (#244303)
fix #240379
2025-03-21 13:58:45 -07:00
Ladislau Szomoru d204ce35ec SCM - fix repository focus issue when clicking on a selected repository (#244261) 2025-03-21 21:54:25 +01:00