Commit Graph

84 Commits

Author SHA1 Message Date
Henning Dieterichs
0bd70d48ad code editor move (#206074) 2024-02-23 14:35:45 +01:00
Johannes Rieken
7215958b3c add commands to navigate between hunks (#205293)
https://github.com/microsoft/vscode/issues/203349
2024-02-15 15:57:24 +01:00
Tyler James Leonhardt
246a3371b3 Move more strings to localize2 (take 2) (#204180)
* Revert "Revert "Adopt localize2 in more spots" (#204087)"

This reverts commit 5baa693de8.

* Keep only the localize2 changes

* revert accidental change to launch.json
2024-02-02 20:17:56 +01:00
João Moreno
5baa693de8 Revert "Adopt localize2 in more spots" (#204087)
Revert "Adopt localize2 in more spots (#204030)"

This reverts commit 7923151da4.
2024-02-02 09:59:59 +01:00
Matt Bierner
7923151da4 Adopt localize2 in more spots (#204030)
Another pass adopting localize2
2024-02-01 16:36:35 -08:00
Johannes Rieken
6aad7f2ec9 move StartSessionAction back to /browser/, add indirection for holdForSpeech-feature (#203890)
https://github.com/microsoft/vscode-copilot/issues/3857
2024-01-31 15:13:58 +01:00
Matt Bierner
777ea450a1 Adopt localize2 in more places (#203842)
Switches many callers to use `localize2` instead of duplicating strings
2024-01-31 02:16:25 +01:00
Johannes Rieken
cc593a387e inline chat tweaks and tests (#202984)
* update action ids

* detect user edits inside and outside of chat UI, add test for https://github.com/microsoft/vscode-copilot/issues/3523

* fix tests
2024-01-22 14:39:08 +01:00
Johannes Rieken
4217af7696 restore stashed sessions for when accidentially dismissing a session (#203006) 2024-01-22 14:31:23 +01:00
Johannes
481d7bb72d Use hold mode in start inline chat action to enable speech 2024-01-16 18:16:31 +01:00
Johannes
ec9ab00fae Merge branch 'main' into joh/bumpy-bonobo 2024-01-16 15:01:58 +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
Johannes
f8e03eceb9 Merge branch 'main' into joh/bumpy-bonobo 2024-01-12 15:47:17 +01:00
Johannes Rieken
77ca6ccd41 Joh/mysterious-octopus (#202079)
* debt - don't use extra buttons for accept/discard hunk

* - inline chat history shouldn't loop
- preserve the initial value and restore it

fixes https://github.com/microsoft/vscode-copilot-release/issues/671
2024-01-09 15:43:26 +01:00
Johannes
2f40bba1a2 first version od quick voice that starts inline chat with what you said 2023-12-20 16:54:43 +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
4da031abb8 only show ViewInChat when there are just messages, not when the response is mixed (#200939) 2023-12-15 11:02:01 +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
Aiday Marlen Kyzy
8f81492eb2 removing the code for the gutter icon and the toolbar icon 2023-12-13 10:49:08 +01:00
Johannes Rieken
2206e09ec5 fix https://github.com/microsoft/vscode/issues/199662 (#199667) 2023-11-30 15:09:08 +01:00
Johannes Rieken
bf0c6eb8bb fix https://github.com/microsoft/vscode/issues/199444 (#199524) 2023-11-29 12:37:40 +01:00
Johannes Rieken
2d18058fba Use new diffSingle icon for live3 changes view (#199517) 2023-11-29 11:25:31 +01:00
Johannes Rieken
ee6922b849 fix https://github.com/microsoft/vscode-copilot/issues/3112 (#199504) 2023-11-29 10:08:11 +01:00
Johannes Rieken
246d5e792d fix https://github.com/microsoft/vscode/issues/199371 (#199494) 2023-11-29 08:53:17 +01:00
Johannes Rieken
2c13662a9e fix https://github.com/microsoft/vscode-copilot/issues/2775 (#199166) 2023-11-27 15:32:07 +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
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
Aiday Marlen Kyzy
8bb522bf6e adding one more context key in order to record whether the sparkle toolbar icon is enabled 2023-11-17 14:42:26 +01:00
Aiday Marlen Kyzy
edc4698236 Making the editor toolbar sparkle icon appear on focus of the editor and when the inline chat is not visible yet (#198458)
changed the condition for the sparkle to appear
2023-11-17 11:39:09 +01:00
Peng Lyu
d68e8f4016 Merge pull request #197794 from microsoft/rebornix/conservation-dormouse
Report issue contrib for inline widget and sidebar.
2023-11-14 08:38:21 -08:00
rebornix
99b78d90be Tweak name 2023-11-14 08:18:27 -08:00
rebornix
29b0e44ed7 Resolve comments 2023-11-14 08:14:32 -08:00
Aiday Marlen Kyzy
f22f552a8d changing name of the icon 2023-11-14 15:25:23 +01:00
Aiday Marlen Kyzy
c3c3e671f0 registering an icon also 2023-11-14 15:23:52 +01:00
Aiday Marlen Kyzy
63779d3974 setting the menu to the editor title 2023-11-14 15:09:54 +01:00
Aiday Marlen Kyzy
22ab376bfc appending the menu item in order to show the sparkle as a button that executes the start inline chat action 2023-11-14 14:52:48 +01:00
rebornix
6dd6275d2a move off menu 2023-11-13 12:12:22 -08:00
Aiday Marlen Kyzy
5bcff70fe0 Adding hover message on sparkle which spawns inline chat (#196278)
* remove the sparkle on inline chat appearance

* adding the markdown string for hover message

* removing code

* adding code

* localizing the string and setting the variable to readonly because it will never be changed, placing it into the constructor
2023-10-24 21:34:38 +02:00
Harald Kirschner
9b9187dd49 Fix inline chat command title 2023-10-22 21:52:13 -07:00
Johannes
303a246f06 remove Session#lastTextModelChanges because it is often stale. Instead compute on demand 2023-10-18 12:12:31 +02:00
Johannes
98f0259912 chore - move isInteractiveEditorOptions into its type 2023-09-22 11:51:11 +02:00
Joyce Er
e141d3c039 revert: esc should discard if there are no edits (#193697) 2023-09-21 16:38:19 +01:00
Joyce Er
11bfd76a61 feat: show Accept Changes command in palette
This allows for discoverability of the keybinding without requiring that
we render the keybinding in the UI persistently (which would add visual
clutter)
2023-09-20 16:37:35 -07:00
Joyce Er
e8f5d4b242 feat: enable accept via command without edits 2023-09-20 16:37:35 -07:00
Megan Rogge
4f6f33e491 Merge pull request #192337 from microsoft/check
fix context key issues w chat accessibility help
2023-09-06 16:25:02 -04:00
meganrogge
80becd6bc3 rm something 2023-09-06 15:47:16 -04:00
meganrogge
0a49cea839 rm something 2023-09-06 15:46:41 -04:00
meganrogge
932a8381e1 fix context key issues 2023-09-06 15:43:04 -04:00
Henning Dieterichs
82af26f706 Cleans up diff editor. Fixes #185944 2023-09-06 17:20:53 +02:00