Commit Graph

57 Commits

Author SHA1 Message Date
Matt Bierner
2eebc29410 Hide some internals of ChatEditorUri
We don't need to export this namespace anymore
2025-11-03 14:31:27 -08:00
Connor Peet
b83e8ed4d4 edits: transfer edit session to committed agent chat session (#274840)
Working set and edit history transfers, however chat pills do not yet
show up since they don't survive the chat history transfer.

Refs #274198
2025-11-03 19:06:09 +00:00
Matt Bierner
a1f7be35bf More sessionId -> sessionResource conversation
- Adopting for code blocks
- Switching to use safer `LocalChatSessionUri.parseLocalSessionId` in a few more spots
- Adopting for some contexts and a few more apis
2025-10-31 11:25:00 -07:00
Matt Bierner
533090c123 Another merge fix 2025-10-30 18:44:39 -07:00
Matt Bierner
db5ee1e0f4 Convert ChatService to use uris instead of ids in public apis
Moves the chat service public APIs to use uris for identifying sessions instead of ids. These uris are preferred as they work correctly for both contributed and local session

This ends up touch a lot of the chat apis. In most cases, the change is simply to pass in the URI instead of the id. In a few cases where the URI hasn't been fully hooked up, I am using `LocalChatSessionUri` to do this conversation

For the chat session implementation, I also switched to use resource maps to store session specific information instead of a normal map
2025-10-30 17:38:33 -07:00
Matt Bierner
3bb2ff6262 More plumbing through of session resources instead of ids 2025-10-30 12:37:54 -07:00
Matt Bierner
eef25fc6d6 More use of session resource instead of ids
This also removes some code that was duplicated to handle local vs contributed sessions
2025-10-29 16:52:21 -07:00
Matt Bierner
92e4d87089 More clean up to chat session uris
- We will use `vscodeChatEditor` for the `new chat editor` flow
- Keep `vscode-chat-session` but make it clear it's only for local chat sessions
- Get rid of the `target: sessionId` support for chat editors and instead use `vscode-chat-session` uris
- Mark `Session.id` as deprecated as the resource should be preferred
2025-10-29 11:23:26 -07:00
Matt Bierner
fa2661b857 Extract localChatSessionType constant
Makes it easier to maintain and find where local sessions are used
2025-10-28 13:59:41 -07:00
Matt Bierner
ec0c7f0445 Reuse getSessionType 2025-10-28 11:42:58 -07:00
Peng Lyu
8fcede8bce Merge pull request #273345 from microsoft/rebornix/important-hoverfly
Support light/dark theme for agent icons
2025-10-25 17:57:17 -07:00
Peng Lyu
cf18bbb21e Resize agent emtpy view icon and support non codicon icons. 2025-10-25 14:35:07 -07:00
Matt Bierner
ec38484780 Merge pull request #273214 from mjbvz/dev/mjbvz/bottom-condor
Fix initial chat title
2025-10-24 17:18:37 -07:00
Matt Bierner
ad03e60118 Fix initial chat title
Makes sure we update the title after resolving the model and that we pass in an initial title
2025-10-24 17:06:07 -07:00
Matt Bierner
f8a94f9f3f Fix chatInput matches check for custom schemes
This could result in duplicate editors being opened in some cases
2025-10-24 13:53:54 -07:00
Osvaldo Ortega
17f8ab5729 Fixes for local chat sessions (#273009) 2025-10-24 00:31:50 +00:00
Matt Bierner
fb6055cb58 Use URIs to identify sessions (#272013)
* Start work on using URIs to identify sessions

This starts switching us from id+types to use uris to identify chat sessions. I already added very basic support for this but in this next step I think we need a breaking change so that we can avoid adding more and more hacks and complexity to support this

* More work

* Add docs

* Fix indent

* Bump api

* Fix quotes

* Fix tests

* fix compile errors for mockChatSessionService

* Fix mockChatSessionService

* Update getChatSessionType

* Make sure resolver also registers any initial schemes

* add ChatSessionService.hasAnySessionOptions()

---------

Co-authored-by: Peng Lyu <penn.lv@gmail.com>
Co-authored-by: Josh Spicer <23246594+joshspicer@users.noreply.github.com>
2025-10-23 15:16:46 -07:00
Josh Spicer
6aa08bd4f1 Show chat session display name in tooltip (#272782) 2025-10-22 15:23:17 -07:00
Vijay Upadya
b09414d102 Show chat item title while loading in editor (#272360)
* Show chat item title while loading

* update comment

---------

Co-authored-by: vijay upadya <vj@example.com>
2025-10-20 22:38:10 +00:00
Peng Lyu
f7d918f603 Update todos 2025-10-19 12:25:11 -07:00
kieferrm
f7fc5ff92e Add icon support for chat session editor tabs 2025-10-18 12:59:58 -07:00
kieferrm
dfa4b5b3c2 Add icon support for chat session editor tabs 2025-10-18 12:59:34 -07:00
Peng Lyu
1c390a83f2 Update src/vs/workbench/contrib/chat/browser/chatEditorInput.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-13 13:48:02 -07:00
Peng Lyu
fc83262282 can use tool 2025-10-13 13:46:57 -07:00
Benjamin Pasero
b7393f3bc3 Clicking on a change pill should preserve focus in chat (fix #260281) (#270341)
* Clicking on a change pill should preserve focus in chat (fix #260281)

* remove unused code

* 💄
2025-10-08 12:10:21 +02:00
Paul
b837bd651a [Chat Sessions] Show custom chat editor titles for contributed chat sessions (#269751) 2025-10-03 16:07:13 -07:00
Paul Wang
b269e90d03 truncate 2025-10-03 12:40:42 -07:00
Osvaldo Ortega
83839266e9 Adding chat input type to chat model (#265923) 2025-09-10 10:48:25 -07:00
Rob Lourens
ece215ea9b Don't create chat sessions as "editor" location (#265516)
This means inline chat. I got into a state where a chat session was loaded in the panel instead of a chat editor and the location caused issues
2025-09-06 22:26:32 +00:00
Matt Bierner
c98253cc34 Make sure we only have a single chat session editor per group
Fixes #264686
2025-09-03 16:26:12 -07:00
Matt Bierner
598349e1c5 Fix possible leak in chat opening
#264670
2025-09-02 14:37:58 -07:00
Benjamin Pasero
2509d0f66d chat - use chatSparkle consistently (#263211)
cc @eli-w-king
2025-08-25 09:55:06 +02:00
Copilot
fc55871185 Implement inline rename functionality for chat sessions (#261141)
* Initial plan

* Implement core chat session rename functionality

Co-authored-by: osortega <48293249+osortega@users.noreply.github.com>

* Refine chat session rename implementation with proper input handling

Co-authored-by: osortega <48293249+osortega@users.noreply.github.com>

* Compilation errors

* MVP

* E2E

* Fix fallback naming mechanisms

* Remove counts in use when using a custom title

* Merge

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: osortega <48293249+osortega@users.noreply.github.com>
Co-authored-by: Osvaldo Ortega <osortega@microsoft.com>
2025-08-16 06:42:16 +00:00
Matt Bierner
ba6b7399ce Work on having very poor version of chat model service 2025-07-23 17:06:55 -07:00
Matt Bierner
94083de0be Start hooking up using uri for opening custom chat sessions 2025-07-23 13:43:27 -07:00
Johannes
d123e6167a fix cyclic dependency chatAction <-> chatEditorInput. fyi @roblourens 2025-06-10 17:07:08 +02:00
Benjamin Christopher Simmonds
bea53a126f Editor Chat context drag and drop (#245314) 2025-04-02 10:59:42 +02:00
Rob Lourens
84376ae642 Show custom confirm dialog when closing chat editor with active edits (#244532)
Also don't open edited files when in a chat editor, and save chat editor view state correctly
2025-03-24 18:17:26 -07:00
Rob Lourens
52bdb7a756 Fix issues with moving chat editors (#244401)
Fix #244095
2025-03-23 17:11:40 -07:00
Rob Lourens
a4ee2666f0 Store chat sessions in fs (#243670)
* Start on storing chat sessions on fs

* More

* More ChatSesssionStore work

* More changes

* More fixes

* Avoid layer break

* Handle clear session, block shutdown while saving, handle other cases

* Key name

* Fix build error

* Tweaks

* Don't show migrated empty sessions in hsitory

* Comment out unused transfer code for now

* Fix test
2025-03-18 01:07:18 +00:00
Rob Lourens
4594828698 Fix remaining ChatAgentLocation imports (#243693)
* Fix more ChatAgentLocation imports

* Fix more
2025-03-16 19:00:11 +01:00
Benjamin Pasero
6b924c5152 ESM merge to main (#227184)
Co-authored-by: Johannes Rieken <jrieken@microsoft.com>
Co-authored-by: Alexandru Dima <alexdima@microsoft.com>
2024-08-30 10:31:46 +02:00
Johannes Rieken
abb831f432 add IChatModel#initialLocation (#209930)
This represents the location in which chat started, it also comes with `startSession(location)`. Finally, pass the location along when asking for sample questions
2024-04-09 12:02:29 +02:00
Rob Lourens
ed6c6d3f28 Kill "interactive session provider" DEAD (#209700)
* Reduce chat provider usage

* Clear out IChat props

* Delete interactive session provider API

* Totally remove static chat provider registration

* Clean up onDidRegisterProvider events

* Remove provider ID references from model

* Eliminate many 'providerId' references

* Simplify view registration

* Clean up participant-specific actions

* Delete getProviderInfos

* Rename context key

* Fix tests

* Fix action label

* Fix view title

* Fix test

* Fix test

* Fix integration test

* Remove more providerId

* Add API stub to make this compatible with the existing Copilot Chat
2024-04-07 21:06:43 -07:00
Benjamin Pasero
be34739ee8 editors - use canSerialize properly (#205856) 2024-02-21 12:53:06 +01:00
Benjamin Simmonds
be96359bbe Themed editor input icons (#200840) 2023-12-14 13:02:07 +01:00
BeniBenj
88864a3f13 chat editor icon 2023-12-10 11:56:43 +01:00
Benjamin Pasero
b9a5aaf353 Editors: drop IEditorModel and change EditorInput.resolve to a generic type (fix #198180) (#198181) 2023-11-14 08:24:44 +01:00
Rob Lourens
01d4949f36 Continue chat session seamlessly when EH crashes. (#186807)
Need to sync the existing ChatModel to the new EH and reinitialize it for the new chat provider instance.
Fix microsoft/vscode-copilot#155
2023-07-01 01:42:41 +02:00
Rob Lourens
6b66c59b48 Reuse chat editor count in name (#186799)
Fix microsoft/vscode-copilot#149
2023-06-30 15:39:00 -07:00