Commit Graph

858 Commits

Author SHA1 Message Date
Johannes Rieken
5bf3e5d3bd fix https://github.com/microsoft/vscode-copilot-release/issues/8611 (#247739) 2025-04-29 15:47:55 +02:00
Johannes Rieken
76a75a5e8e fix awol inline chat widget (#247408) 2025-04-25 18:57:00 +02:00
Johannes Rieken
74ed105b70 Asorted fixes (#247369)
* fix `ctxHasRequestInProgress` context key

* fix `ctxHasEditorModification` for inline chat and make undo/keep and close actions dependent on it

* add `_lastModifyingResponseObs` and `_lastModifyingResponseInProgressObs` as a more stable alternative of (now) volatile `isCurrentlyBeingModifiedBy`

use this for auto-accept and mute-diagnostics
2025-04-25 11:18:34 +02:00
Oleg Solomko
4810dba642 ensure instruction attachments remain sticky unless chat is /clear-ed or created a new one 2025-04-24 19:41:03 -07:00
Johannes Rieken
1a1f7704d9 for inline chat v2 add a inlineChat.hideOnRequest setting (#247319)
this setting control if the inline chat widget hides after making the request or not
2025-04-24 09:44:18 -07:00
Johannes Rieken
46bf82d9b1 Tweak chat overlay for replace and multipass edits (#247224) 2025-04-23 16:56:49 +02:00
Johannes Rieken
9635986393 Add close btn to inline chat that shows when no response is showing yet (#246501)
https://github.com/microsoft/vscode-copilot-release/issues/7398
2025-04-14 16:22:26 +02:00
Johannes Rieken
9143fb0fd8 add stop btn to inline chat overlay, make sure progress overlay shows for edits (#246224)
* add stop btn to inline chat overlay, make sure progress overlay shows for edits

https://github.com/microsoft/vscode-copilot/issues/13689

* ops
2025-04-10 17:28:39 +00:00
Henning Dieterichs
9d0bff1bcc Adds more metadata to edit operations (#246127) 2025-04-09 20:51:36 +02:00
Justin Chen
e29475a009 image alt text generation and new arg in vscode.editorChat.start (#245922)
* fix issue with squished images

* remove height auto

* alt text generation and new command arguments

* remove some parenths

* address comments, accept uri arrays only

* remove extra line

* move url checking and such to add file

* some more cleanup, remove extra if line
2025-04-09 10:09:56 -07:00
Rob Lourens
2ac70962ac Remove EditingSession location 2025-04-05 22:10:16 -07:00
Johannes Rieken
fc784ffd64 add inlineChat.enableV2 setting (#245327)
This will control/enable the new version of inline chat
2025-04-02 12:38:18 +02:00
Benjamin Christopher Simmonds
bea53a126f Editor Chat context drag and drop (#245314) 2025-04-02 10:59:42 +02:00
Johannes
df8ec180bd chore: WorkingSetEntryState -> ModifiedFileEntryState 2025-03-28 16:48:17 +01:00
Johannes Rieken
27df383fbf inline chat 2 should never show code blocks (#244846)
fixes https://github.com/microsoft/vscode-copilot/issues/15027
2025-03-27 11:30:49 +01:00
Johannes Rieken
7d0cd40c1b When looking up an inline chat session, also check modified file entries (#244838)
fixes https://github.com/microsoft/vscode-copilot/issues/15031
2025-03-27 10:13:17 +01:00
Justin Chen
2e6728cc3b make sure that addFile supports images (#244420)
* make sure that addFile supports images

* use promise.all
2025-03-24 13:31:18 -07:00
Johannes Rieken
9be7ec806e validation position before using it (#244438)
* Revert "make TextModel line methods forgiving (like range methods) (#244430)"

This reverts commit 060cf69703.

* validation position before using it
2025-03-24 11:18:43 +01:00
Johannes Rieken
28d95e61a1 fixes https://github.com/microsoft/vscode-copilot/issues/14688 (#244425) 2025-03-24 09:36:35 +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
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
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
Johannes Rieken
4be040d172 only register close btn for inline chat2 (#244220) 2025-03-21 10:47:34 +01:00
Benjamin Pasero
0c33dc042a chat - setup tweaks (#243955) 2025-03-19 12:43:19 +01:00
Benjamin Pasero
1deaa6ffd6 chat - enable skeleton prompt in more areas (#243857) 2025-03-18 14:05:05 +01:00
Rob Lourens
4594828698 Fix remaining ChatAgentLocation imports (#243693)
* Fix more ChatAgentLocation imports

* Fix more
2025-03-16 19:00:11 +01:00
Rob Lourens
2c7a028381 Fix inline chat after updating to use "edit2" in the extension (#243507)
Bump API version because these have to be aligned
2025-03-13 20:34:27 -07:00
Rob Lourens
8ef2f681ce Chat view unification (#243285)
* Start enabling unified chat mode

* Move ChatAgentLocation to avoid import cycle. Update imports

* fix more imports

* More work

* Add ChatMode, make agent mode be session-specific, not global
Towards unifying chat views

* Fix mode for transferred session and request parser

* Fixes

* Fix defaultAgent, don't do intent detection

* Fixes

* Don't show mode picker in other locations

* Add chatMode context key

* Fix "new edit session" in unified

* Update context actions

* Update execute actions

* Title actions

* Update more commands
2025-03-13 00:24:40 +00:00
Johannes Rieken
b36d137b54 add close btn to inline chat (#243319) 2025-03-12 11:05:43 +01:00
Joyce Er
fbfb939654 refactor: deprecate IChatEditingSession.addFileToWorkingSet() (#242918) 2025-03-07 21:03:17 +01:00
Johannes Rieken
4a93ee1faf fixes https://github.com/microsoft/vscode-copilot/issues/13152 (#242060) 2025-02-26 13:14:57 +01:00
Johannes Rieken
393c628829 fix https://github.com/microsoft/vscode/issues/241839 (#242056) 2025-02-26 13:03:21 +01:00
Benjamin Pasero
acdb6fafbb chat - cleanup copilot menu further 2025-02-25 08:52:37 +01:00
Johannes Rieken
c5549bc00e asorted fixes (#241684)
* fix https://github.com/microsoft/vscode/issues/241674

* reveal inline chat when switching back to editor

* fixes https://github.com/microsoft/vscode-copilot/issues/13260
2025-02-24 10:45:32 +01:00
Johannes Rieken
6367c86d6e make sure Close button is rendered in inline chat (#241309)
https://github.com/microsoft/vscode/issues/239090
2025-02-20 09:58:46 +01:00
Benjamin Pasero
a6a943cef6 copilot - support menu when command center is disabled (#241079) 2025-02-18 13:14:37 +00:00
Johannes Rieken
ae5010d6ad move chat overlay into workbench grid (#240808)
* make chat editing overlay a workbench editor overlay (not just a code editor overlay), same for editor specific context key, they should not be limited to code editors

* * centralize context key handling into `chatEditoringEditorContextKeys`
*  workbench chat overlay also reacts to inline chat sessions

* fix leak in code lens controller

* 💄

* make sure `EditingSessionAction` find the right widget

* add `IModifiedFileEntryNavigator` to allow change navigation from "the inside"

* remove code editor based chat overlay logic
2025-02-14 16:38:48 +00:00
Johannes
07f4329e12 reveal widget when response is cancelled, errored, or without code changes
fixes https://github.com/microsoft/vscode-copilot/issues/12392
2025-02-07 15:33:52 +01:00
Johannes
166346d782 make ESC also hide and terminal the inline chat session 2025-02-07 15:31:03 +01:00
Johannes Rieken
09a758fb3f refactor the new inline chat controller so that switching is simpler (#239937) 2025-02-07 14:08:52 +01:00
Johannes Rieken
330e6bfeb9 more inline chat controller alignment (#239785)
* remove `InlineChatController#onWillStartSession`

* more inline chat controller alignment

* more inline chat controller alignment

* fix compile errors
2025-02-06 12:22:23 +01:00
Johannes Rieken
9624242dd5 chore - renames and moves (#239616)
* chore - renames and moves

* update CSS paths too
2025-02-04 17:39:12 +01:00
Johannes Rieken
776bf43309 chore - remove dead code and align controllers a little (#239619) 2025-02-04 17:34:53 +01:00
Johannes Rieken
43469df88d chore - make reviewEdits a dedicated function (#239611) 2025-02-04 16:36:58 +01:00
Johannes Rieken
d0b83e6142 support InlineChatRunOptions for inline chat (#239591) 2025-02-04 13:01:11 +01:00
Johannes
d8587cf8e7 chore - rename and less use of globalEditingSession 2025-02-03 16:52:05 +01:00
Johannes Rieken
46ed85145c Lazy ftw, fixes https://github.com/microsoft/vscode/issues/239174 (#239189) 2025-01-30 11:27:24 +01:00
Johannes Rieken
bd23a0b300 fix https://github.com/microsoft/vscode/issues/238925 (#239070) 2025-01-29 10:18:19 +01:00
Johannes Rieken
6325b956c0 fixes https://github.com/microsoft/vscode/issues/238926 (#239067) 2025-01-29 09:48:00 +01:00
Johannes Rieken
5e38f282a2 edits fixes (#238826)
one inline chat session per file, fix revealing for 1+n requests
2025-01-27 10:35:39 +01:00