feat: add inline chat input functionality and styling improvements

This commit is contained in:
Johannes
2026-02-18 12:39:25 +01:00
parent 253edfac44
commit 33b466b265
9 changed files with 184 additions and 114 deletions

View File

@@ -118,6 +118,7 @@ export class InlineChatController implements IEditorContribution {
private readonly _renderMode: IObservable<'zone' | 'hover'>;
private readonly _zone: Lazy<InlineChatZoneWidget>;
private readonly _gutterIndicator: InlineChatAffordance;
private readonly _inputWidget: InlineChatInputWidget;
private readonly _currentSession: IObservable<IInlineChatSession2 | undefined>;
@@ -129,6 +130,10 @@ export class InlineChatController implements IEditorContribution {
return Boolean(this._currentSession.get());
}
get inputWidget(): InlineChatInputWidget {
return this._inputWidget;
}
constructor(
private readonly _editor: ICodeEditor,
@IInstantiationService private readonly _instaService: IInstantiationService,
@@ -152,7 +157,7 @@ export class InlineChatController implements IEditorContribution {
const notebookAgentConfig = observableConfigValue(InlineChatConfigKeys.notebookAgent, false, this._configurationService);
this._renderMode = observableConfigValue(InlineChatConfigKeys.RenderMode, 'zone', this._configurationService);
const overlayWidget = this._store.add(this._instaService.createInstance(InlineChatInputWidget, editorObs));
const overlayWidget = this._inputWidget = this._store.add(this._instaService.createInstance(InlineChatInputWidget, editorObs));
const sessionOverlayWidget = this._store.add(this._instaService.createInstance(InlineChatSessionOverlayWidget, editorObs));
this._gutterIndicator = this._store.add(this._instaService.createInstance(InlineChatAffordance, this._editor, overlayWidget));