Commit Graph

164 Commits

Author SHA1 Message Date
Johannes Rieken 595e7d4275 fix https://github.com/microsoft/vscode/issues/201197 (#201221) 2023-12-19 17:55:40 +01:00
Johannes Rieken 48a9149e6a Joh/overall-swordtail (#201218)
* don't grow wholeRange but accept it as given, pass tracked wholeRange when making a request

* fix it
2023-12-19 16:51:10 +01:00
Johannes Rieken 0bd31a85e4 Add inline chat toolbar for close and configure (#201200)
* add input widget toolbar, add close action

* * make "finish on typing" configurable and turn it off by default
* add configure action to widget toolbar

* fix tests
2023-12-19 15:19:11 +01:00
Johannes Rieken 3369508fe7 inline chat tweaks (#201126)
* streamline tel data

* rename to LiveStrategy

* fix up highlights
2023-12-18 15:17:26 +01:00
Johannes Rieken 2cf5c59bcc reset history offset when finishing session (#200930) 2023-12-15 09:59:44 +01:00
Johannes Rieken 054c9129f8 live3 becomes live (#200866) 2023-12-14 18:24:38 +01:00
Johannes Rieken f6a6df7dd4 fix https://github.com/microsoft/vscode-copilot/issues/3143 (#200859) 2023-12-14 17:20:18 +01:00
Johannes Rieken e1950559a8 Eager inline UI shouldn't show info message nor placeholder to prevent flicker (#200236)
fixes https://github.com/microsoft/vscode-copilot/issues/3194
2023-12-07 12:12:30 +01:00
Johannes Rieken 7a5744dffc fix https://github.com/microsoft/vscode-copilot/issues/3134 (#199523) 2023-11-29 12:34:19 +01:00
Johannes Rieken ee6922b849 fix https://github.com/microsoft/vscode-copilot/issues/3112 (#199504) 2023-11-29 10:08:11 +01:00
Martin Aeschlimann 84d1e11bb6 inline chat: bring back message cropping (#199040)
* bring back cropped mesages

* fix
2023-11-27 15:27:55 +01:00
Johannes Rieken f54f1b0400 Further tweak light weight diff mode (#199148)
- Let message talk about changes not lines
- Move "Compare" into rhs toolbar as toogle action
2023-11-27 12:21:57 +01:00
Johannes Rieken f593d2e626 Joh/weird-mink (#199049)
* fix up wholerange with diff information once all edits are there

* update summary when having changes across ranges
2023-11-24 19:13:50 +01:00
Johannes Rieken 5d73488bb3 Use a light weight diff for live inline chat mode (#199027)
* wip

* add yet another live mode which is live and live preview...

* use `renderLines` and view zones for orginal contents, render accept, discard, and compare in line

* remove LiveStrategy2 again

* render insertion diff as progressive changes happen

* implement discard

* implement explicit accept via button and implict accept via typing inside changes

* merge diff changes that are somewhat near

* pass zone, not just widget to strategies

* add `IEditorDecorationsCollection#append`

* move live3 actions into widget, don't render normal accept, discard, allow strategry to trigger accept, discard flows

* cleanup

* make sure re-run works
2023-11-24 15:14:53 +01:00
Johannes Rieken 9372453879 persist inline chat history (#198680) 2023-11-20 14:35:53 +01:00
Martin Aeschlimann 521466d52f inlinechat: add UI for followups (#198563)
inlinechat: add followups
2023-11-17 22:15:48 +01:00
Martin Aeschlimann e9ab39744b Use chatListRenderer in InlineChat (#198525)
* Use chatListRenderer in InlineChat

* use for progress

* manage ChatModel and ChatResponseModel in inlineChatWidget
2023-11-17 20:39:20 +01:00
Johannes Rieken 6c8fd34375 Joh/young-catshark (#198416)
* add save & discard-btns to inline new file experience, simplify response type because we don't really support workspace edit, fix size/height bug, fix positioning bug

* fix preview mode, clean up events, fix workspace edit escape hatch

* merge main, fix compile errors
2023-11-16 16:27:36 +01:00
Peng Lyu f5a048f5cf Merge pull request #198276 from microsoft/rebornix/lonely-wildfowl
notebook cell chat widget
2023-11-15 15:51:47 -08:00
rebornix afe429c5f5 Listen to inline and dismiss on cell properly 2023-11-15 11:09:41 -08:00
rebornix 29b0e44ed7 Resolve comments 2023-11-14 08:14:32 -08:00
rebornix 6dd6275d2a move off menu 2023-11-13 12:12:22 -08:00
rebornix 72ae4d632c Merge remote-tracking branch 'origin/main' into rebornix/conservation-dormouse 2023-11-13 11:12:13 -08:00
Johannes Rieken b59e387ea6 async progress isn't needed anymore (#198137) 2023-11-13 17:59:31 +01:00
Peng Lyu 26a1229345 Merge branch 'main' into rebornix/conservation-dormouse 2023-11-09 07:51:56 -08:00
rebornix a6edda2682 Menu contrib for inline widget and sidebar. 2023-11-08 19:37:06 -08:00
Martin Aeschlimann b57b2e7c6c Support edits and markdown mixed mode in InteractiveEditorResponse (#197783)
* add message for IInlineChatEditResponse

* fix check if res.contents is undefined
2023-11-08 14:35:01 -08:00
meganrogge ebf007b1fc fix #196735 2023-10-30 09:43:39 -07:00
Johannes Rieken 6697193a79 debt - merge EditResponse and MarkdownResponse into ReplyResponse (#196885) 2023-10-28 15:08:49 +02:00
Johannes Rieken e17336d6cf - only update/reposition inline widget when showing again (#196829)
- when hiding the first view port line, don't restore previous view port

again fixes https://github.com/microsoft/vscode-copilot/issues/2288
2023-10-27 15:09:01 +02:00
Johannes Rieken 5a8659ad66 local usage of _chatAccessibilityService, don't spread it around the state machine (#196737)
https://github.com/microsoft/vscode/issues/194424
2023-10-26 18:30:26 +02:00
Johannes Rieken 9f627c21f6 no undoStops between streaming edits, esp not between last and second to last round (#196708)
fixes https://github.com/microsoft/vscode-copilot/issues/2403
2023-10-26 15:21:08 +02:00
Joyce Er e685838c2d fix: allow referring from inline to panel chat (#196614) 2023-10-25 18:53:37 +02:00
Johannes Rieken 45ad77c571 don't re-show the inline chat widget on each progress chunk (#196596)
fixes https://github.com/microsoft/vscode/issues/196562
fixes https://github.com/microsoft/vscode-copilot/issues/2288
2023-10-25 17:58:22 +02:00
Johannes Rieken 7986cd312c when being invoked with an explict position then make sure to show above that (#196604)
fixes https://github.com/microsoft/vscode-copilot/issues/2273
2023-10-25 17:30:48 +02:00
Martin Aeschlimann ac3423056d Inline chat: select prefilled input for a fast override (#196313) 2023-10-25 14:53:36 +02:00
Johannes Rieken f21392bc5a Stop progressive text edits when overall operation is done (or cancelled). Only undo unwanted changes after that. (#196558)
fixes https://github.com/microsoft/vscode-copilot/issues/2296
2023-10-25 10:53:46 +02:00
Benjamin Pasero b320559f52 voice - polish UX when recording (#196544) 2023-10-25 09:10:30 +02:00
Johannes Rieken 7172fd9d54 Allow to disable progressive edits per progress chunk (#196424) 2023-10-24 18:29:02 +02:00
Johannes Rieken 1ca2bfbec1 stop progressive text edits when request is cancelled, hide diffzone(s) after undo'ing changes (#196100) 2023-10-20 11:08:12 -07:00
Johannes 52fa01b46c https://github.com/microsoft/vscode-copilot/issues/2122
highlight whole range again, always show widget above whole range, simplify bits some parts
2023-10-20 18:30:49 +02:00
Johannes Rieken 272a3c2e9a Merge pull request #196075 from microsoft/joh/xenacious-mammal
Improve progressive edits of inline chat
2023-10-20 14:35:14 +02:00
Johannes 9ad7a4f7f8 good catch. thank you tests 2023-10-20 13:50:18 +02:00
Johannes Rieken de0121cf0e stop revealing inline chat when typing in its input box (#196074)
fixes https://github.com/microsoft/vscode-copilot/issues/2103, undes a feature-request that shouldn't have been done
2023-10-20 12:07:53 +02:00
Johannes 04a8e5ae5b enqueue progress edits so that their "typing" doesn't influce the average duration at which chunks are received 2023-10-20 11:39:15 +02:00
Johannes a01b5c3b67 don't use minimal edits when showing progressive edits 2023-10-20 11:09:10 +02:00
Megan Rogge 0d382ea42a Merge pull request #196048 from microsoft/merogge/revise
revise message
2023-10-19 14:36:14 -07:00
meganrogge 2ebefa547d fix #196036 2023-10-19 14:20:34 -07:00
Martin Aeschlimann a2aed6d28f add InteractiveEditorSession.input (#196045) 2023-10-19 23:17:21 +02:00
Johannes Rieken b598801d4a Make streaming edits so that each line is typed out according to the response speed (#196010) 2023-10-19 10:11:52 -07:00