Cleanup and prepare inline chat for UI updates (#215420)

* 💄

* debt - remove `trackEdits` because we have fixup
debt - don't compute diff twice

* allow to pass/use all chat widget options when creating an inline chat widget
This commit is contained in:
Johannes Rieken
2024-06-13 11:24:50 +02:00
committed by GitHub
parent f942605e16
commit c0bbf0447e
8 changed files with 54 additions and 75 deletions

View File

@@ -80,7 +80,7 @@ export class StartSessionAction extends EditorAction2 {
let options: InlineChatRunOptions | undefined;
const arg = _args[0];
if (arg && InlineChatRunOptions.isInteractiveEditorOptions(arg)) {
if (arg && InlineChatRunOptions.isInlineChatRunOptions(arg)) {
options = arg;
}
InlineChatController.get(editor)?.run({ ...options });