mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
inline chat for notebook cell uses the Notebook chat location (#213385)
* inline chat for notebook cell uses the `Notebook` chat location * fix tests
This commit is contained in:
@@ -21,7 +21,7 @@ import { isEqual } from 'vs/base/common/resources';
|
||||
import { StableEditorBottomScrollState } from 'vs/editor/browser/stableEditorScroll';
|
||||
import { ScrollType } from 'vs/editor/common/editorCommon';
|
||||
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
|
||||
|
||||
import { ChatAgentLocation } from 'vs/workbench/contrib/chat/common/chatAgents';
|
||||
|
||||
export class InlineChatZoneWidget extends ZoneWidget {
|
||||
|
||||
@@ -32,6 +32,7 @@ export class InlineChatZoneWidget extends ZoneWidget {
|
||||
private _indentationWidth: number | undefined;
|
||||
|
||||
constructor(
|
||||
location: ChatAgentLocation,
|
||||
editor: ICodeEditor,
|
||||
@IInstantiationService private readonly _instaService: IInstantiationService,
|
||||
@IContextKeyService contextKeyService: IContextKeyService,
|
||||
@@ -45,7 +46,7 @@ export class InlineChatZoneWidget extends ZoneWidget {
|
||||
this._ctxCursorPosition.reset();
|
||||
}));
|
||||
|
||||
this.widget = this._instaService.createInstance(EditorBasedInlineChatWidget, this.editor, {
|
||||
this.widget = this._instaService.createInstance(EditorBasedInlineChatWidget, location, this.editor, {
|
||||
telemetrySource: 'interactiveEditorWidget-toolbar',
|
||||
inputMenuId: MenuId.ChatExecute,
|
||||
widgetMenuId: MENU_INLINE_CHAT_WIDGET,
|
||||
|
||||
Reference in New Issue
Block a user