mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Fix microsoft/vscode-copilot#4823. (#208828)
Fix microsoft/vscode-copilot#4762.
This commit is contained in:
parent
25da801de4
commit
24346707ae
|
@ -316,8 +316,8 @@ export class NotebookChatController extends Disposable implements INotebookEdito
|
|||
run(index: number, input: string | undefined, autoSend: boolean | undefined): void {
|
||||
if (this._widget) {
|
||||
if (this._widget.afterModelPosition !== index) {
|
||||
this._disposeWidget();
|
||||
const window = getWindow(this._widget.domNode);
|
||||
this._disposeWidget();
|
||||
|
||||
scheduleAtNextAnimationFrame(window, () => {
|
||||
this._createWidget(index, input, autoSend, undefined);
|
||||
|
|
Loading…
Reference in a new issue