Commit Graph

21 Commits

Author SHA1 Message Date
Johannes
bb289d3280 small todo updates 2024-03-20 17:07:46 +01:00
Johannes
15441f4251 Merge branch 'main' into joh/chatWidget 2024-03-20 16:06:03 +01:00
Johannes
6ae696aa56 - first run of cleanup
- update new required services for tests and adjust them
2024-03-20 15:58:55 +01:00
Johannes
6931665097 - fix re-run and re-run with intent detection commands
- add support for tree-rendering detected command/agent in a special way
- first cut of tree-rendering for text edis
2024-03-20 12:38:04 +01:00
Johannes
230e024cd6 updates 2024-03-19 17:08:19 +01:00
Logan Ramos
811ce8a51f Introduce new inline chat error type for showing to the user (#208098)
Introduce new error type for showing to the user
2024-03-19 16:56:09 +01:00
Johannes
86580f4c05 register only one chat agent for all of inline chat 2024-03-19 15:11:51 +01:00
Johannes
1f17652159 - only layout zone widget when visible
- content widget and controller tweaks
- wire up follow up commands
- disable filter for inline chat widget because its weird
- hardcode height
2024-03-19 14:31:53 +01:00
Johannes
82dd541e3d - progress bar is defined by request start/stop
- agent clue makes response objects
2024-03-18 20:03:23 +01:00
Johannes
e5385dac71 - use chat widget also for content widget (shared chat model)
- add TextEdits to chat model
- add IChatTextEdit and IChatUsedSlashCommand to chat progress types
-  hook up ad-hoc agent to inline chat session (no more custom commands)
- add new `State.SHOW_REQUEST` state for when new requests are made
2024-03-18 19:12:44 +01:00
Johannes
8db31dfc5d wip 2024-03-18 14:18:32 +01:00
Johannes
0ac95cc1b7 - use chat input part for content widget
- use chat widget over renderer-reuse and custom input
- allow to configure chat menus/actions
- allow to define filter for chat list/tree
2024-03-15 15:44:41 +01:00
Johannes Rieken
933a728d0e end inline chat session when its provider goes, undo changes and close chat UI (#204125) 2024-02-02 13:28:25 +01:00
Johannes Rieken
1f80d8b8e4 fix https://github.com/microsoft/vscode/issues/203510 (#203798) 2024-01-30 15:54:13 +01:00
Johannes Rieken
6215ccd0e7 send telemetry about accepted/discarded hunks and about response types (#203780) 2024-01-30 12:09:34 +01:00
Johannes Rieken
6eb3213066 inline chat work (#203534)
* debt - use hunks to render preview diff

* add `InteractiveEditorRequest#previewDocument` to indicate for which document edits are previewed before being applied
2024-01-26 15:40:43 +01:00
Johannes Rieken
5cbd1a836b release inline chat session for untitled file when it becomes saved (non-dirty) (#203454)
fixes https://github.com/microsoft/vscode/issues/203448
2024-01-25 16:21:47 +01:00
Johannes Rieken
4e31c84e0f make sure textModel0 (and textModekN) has a unique uri (#203015) 2024-01-22 16:21:09 +01:00
Johannes Rieken
4217af7696 restore stashed sessions for when accidentially dismissing a session (#203006) 2024-01-22 14:31:23 +01:00
Johannes Rieken
053bbeb47c Use hunks also for livePreview and preview mode (#202843)
* more test coverage

* - Session has textModelN and targetUri where they must not always be equal
- for preview mode create textModelN copy so that AI edits can always be applied
- let preview mode work with hunk information

* - live preview uses hunk information
- tweak utils

* fix live-mode toggle diff
2024-01-19 13:14:28 +01:00
Johannes Rieken
b8b5a4aad0 Move hunk computation into sessions, let strategies render them (#202578)
* chore - move chat session service implementation and interface into their own files

* chore - move chat saving service implementation and interface into their own files

* - move hunks into session (instead of strategy)
- recompute them after receiving AI changes
- accept& discard moves hunks from textModelN to textModel0 and vice versa
- service renames
- tests

* - session doesn't know about an editor, only service does
- allow to "move" session to a different editor
- let controller pickup session after move to its editor
- session saving picks up orphand sessions

* try to restore editors when group is still valid

* ctrl - don't pause when cancellation happens during session create

* fix tests
2024-01-16 14:50:19 +01:00