Commit Graph

819 Commits

Author SHA1 Message Date
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
Ladislau Szomoru
6e740ceccf Accessibility - renamed IAccessibleViewImplentation to IAccessibleViewImplementation (#238652) 2025-01-24 11:58:53 +01:00
Johannes Rieken
faad1212c7 inline chat fixes (#238649)
* workaround weird CSS padding
* fix strings#rcut
* tweak cancel and toggle keybindings
2025-01-24 11:45:44 +01:00
Johannes
a4b3b739be put toggle icon into navigate group 2025-01-23 18:13:10 +01:00
Johannes
8d5f6f0050 inline chat edits 2025-01-23 15:39:06 +01:00
Johannes
295fd497cb Merge branch 'main' into joh/inlineChatEdits 2025-01-22 09:55:48 +01:00
Johannes Rieken
9b637ac69e remove chat.editing.alwaysSaveWithGeneratedChanges setting and things around it (#238447)
fyi @isidorn
2025-01-22 09:52:52 +01:00
Johannes
3aece83761 wip - inline chat via editing session 2025-01-22 09:13:23 +01:00
Johannes Rieken
a0af0335c8 chore - cleanup (#238118) 2025-01-17 12:10:00 +01:00
Johannes Rieken
fce85e9d27 uses /edit editor UX for "Apply In Editor" (#237944)
* WIP

* uses /edit editor UX for "Apply In Editor"

fixes https://github.com/microsoft/vscode-copilot/issues/8577
2025-01-15 09:38:56 +01:00
Johannes Rieken
24f6dafe20 debt - remove inline chat preview mode (#237654) 2025-01-10 15:24:34 +01:00
Johannes Rieken
7efdaa5e8e don't show inline chat hint when line has too many comments or strings. (#236567)
The limit is 25% strings, comments, or regex token and (as before) lines ending in comments

https://github.com/microsoft/vscode-copilot-release/issues/3009
2024-12-19 11:34:50 +01:00
Johannes Rieken
a58957af82 fix https://github.com/microsoft/vscode/issues/232918 (#236233) 2024-12-16 16:39:38 +01:00
Johannes Rieken
ab7dae30bf cancel session when token is cancelled (#236056)
https://github.com/microsoft/vscode-copilot-release/issues/2433
2024-12-13 15:44:39 +01:00
Johannes Rieken
d6faa5b076 debt - use observableConfigValue (#235508) 2024-12-06 17:30:17 +01:00
Johannes Rieken
9609819024 makes inline chat hint stable wrt blame decoration (#235497)
- change from injected text to after decoration
- use class name for awol attachedData

https://github.com/microsoft/vscode-copilot/issues/10943
2024-12-06 16:23:47 +01:00
Matt Bierner
055f83c062 Get correct container for inline chat overflow widgets (#235354)
Fixes #235353
2024-12-05 19:10:04 +00:00
Johannes Rieken
4fc0684586 fix https://github.com/microsoft/vscode-copilot/issues/10944 (#235401) 2024-12-05 15:55:04 +01:00
Johannes Rieken
5aa7115522 Fixes microsoft/vscode-copilot#11036 (#235294)
* fix https://github.com/microsoft/vscode-copilot/issues/11036

* cleanup
2024-12-04 18:02:33 +01:00
Johannes Rieken
0e2d7ef9dc asorted fixes (#235242)
* fix https://github.com/microsoft/vscode/issues/235043

* fix https://github.com/microsoft/vscode-copilot/issues/10926

* remove hover message for inline hint

fix https://github.com/microsoft/vscode-copilot/issues/10947
2024-12-04 09:21:45 +01:00
Johannes Rieken
3999521f45 fix https://github.com/microsoft/vscode/issues/235007 (#235011) 2024-12-02 18:34:33 +01:00
Johannes Rieken
4defa1673a use agent name (not full name) for inline chat hint (#234976)
* don't animate or fade inline chat hint

* make `inlineChat.lineEmptyHint` and `inlineChat.lineSuffixHint` as EXP settings

* use agent name (not full name) for inline chat hint

https://github.com/microsoft/vscode-copilot/issues/10863
2024-12-02 13:10:22 +01:00
Johannes Rieken
0da229afca no width restriction for inline chat (#234975)
fixes https://github.com/microsoft/vscode-copilot/issues/9266
2024-12-02 12:51:10 +01:00
Johannes Rieken
9e0297c3ec reveal line when inline chat starts so that sticky scroll doesn't overlap with it (#234974)
re https://github.com/microsoft/vscode/issues/219542
2024-12-02 12:43:16 +01:00
Johannes Rieken
bfe98d2e6e fix illegal value for line number error (#234913)
* fix illegal value for line number error

* fix test
2024-12-02 12:10:28 +01:00
Johannes Rieken
8f3c626c22 inline chat style tweaks (#234900)
* follow up focus border bleed
* response shows no generate
2024-11-29 14:47:03 +01:00
Johannes Rieken
c0699e2945 Joh/sweet-crawdad (#234851)
* fix empty line hint

* no ellipsis on hints

* add `renderDetectedCommandsWithRequest` option and use it for inline chat

fyi @roblourens
2024-11-28 17:31:08 +01:00
Johannes Rieken
1994ebabef tweak inline chat hint (#234821)
* make editor readonly and disable squiggle while inline chat shows reply

https://github.com/microsoft/vscode/issues/226160

* tweak inline chat hint

only show on intented empty lines, hide when command run

* fix tests (only disable squiggle, not readonlyness)
2024-11-28 12:58:47 +01:00
Johannes Rieken
180a8271e1 fixes https://github.com/microsoft/vscode/issues/234541 (#234826)
make sure to hide the widget before model is disposed, make sure chat widget cleans up the tree (disposed model) despite being hidden
2024-11-28 12:46:11 +01:00
Johannes Rieken
5555f6604d inline hint for empty lines, right-click to hide, differentiate between empty line and suffix hint (#234773) 2024-11-27 09:08:40 -08:00
Johannes Rieken
0401bcef46 render rerun message for detected commands with actions (#234747)
https://github.com/microsoft/vscode-copilot/issues/10751

fyi @joyceerhl this fixes an issue where detected commands weren't advertised as such
2024-11-27 12:12:16 +01:00
Johannes Rieken
87c9dd0bc2 don't apply edits from error'ed result when returning to a file (#234736) 2024-11-27 10:48:36 +01:00
Johannes
f4bc95ae4f fix https://github.com/microsoft/vscode-copilot/issues/10096 2024-11-26 11:31:43 +01:00
Johannes Rieken
ebe6e7f4f2 hide squiggles when showing inline chat hint for a line (#234599) 2024-11-25 18:57:47 +01:00
Johannes Rieken
deda781591 add missing tooltip (#234551) 2024-11-25 11:40:53 +01:00
Johannes Rieken
a43f284857 tweak inline chat hint (#234544) 2024-11-25 11:15:03 +01:00
Johannes Rieken
eddef09fa7 renderer side inline hint and cmd to show/hide (#234421) 2024-11-22 15:36:09 +01:00
Rob Lourens
eeec4c35ab Persist selected chat model globally, not per-workspace (#234335)
* Persist selected chat model globally, not per-workspace

* Cleanup
2024-11-21 12:05:23 +01:00
Johannes Rieken
94b3d8ec53 fix https://github.com/microsoft/vscode/issues/234077 (#234093) 2024-11-18 13:09:39 +01:00
Johannes Rieken
7acb009143 set upper bounds for chat exec toolbar when space is narrow (#234092)
re https://github.com/microsoft/vscode/issues/233004
2024-11-18 04:05:13 -08:00