- 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
This commit is contained in:
Johannes
2024-03-18 19:12:44 +01:00
parent 8db31dfc5d
commit e5385dac71
18 changed files with 293 additions and 74 deletions

View File

@@ -351,7 +351,7 @@ export class DiscardAction extends AbstractInlineChatAction {
icon: Codicon.discard,
precondition: CTX_INLINE_CHAT_VISIBLE,
keybinding: {
weight: KeybindingWeight.WorkbenchContrib,
weight: KeybindingWeight.EditorContrib - 1,
primary: KeyCode.Escape,
when: CTX_INLINE_CHAT_USER_DID_EDIT.negate()
},
@@ -556,7 +556,7 @@ export class CancelSessionAction extends AbstractInlineChatAction {
icon: Codicon.clearAll,
precondition: CTX_INLINE_CHAT_VISIBLE,
keybinding: {
weight: KeybindingWeight.WorkbenchContrib - 1,
weight: KeybindingWeight.EditorContrib - 1,
primary: KeyCode.Escape
},
menu: {