mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-15 07:41:11 +01:00
make sure to use ScrollType.Immediate when reveal inline chat content widget (#212906)
fixes https://github.com/microsoft/vscode-copilot/issues/5573
This commit is contained in:
@@ -22,6 +22,7 @@ import { Range } from 'vs/editor/common/core/range';
|
||||
import { ServiceCollection } from 'vs/platform/instantiation/common/serviceCollection';
|
||||
import { IContextKeyService } from 'vs/platform/contextkey/common/contextkey';
|
||||
import { EditorOption } from 'vs/editor/common/config/editorOptions';
|
||||
import { ScrollType } from 'vs/editor/common/editorCommon';
|
||||
|
||||
export class InlineChatContentWidget implements IContentWidget {
|
||||
|
||||
@@ -168,7 +169,7 @@ export class InlineChatContentWidget implements IContentWidget {
|
||||
this._visible = true;
|
||||
this._focusNext = true;
|
||||
|
||||
this._editor.revealRangeNearTopIfOutsideViewport(Range.fromPositions(position));
|
||||
this._editor.revealRangeNearTopIfOutsideViewport(Range.fromPositions(position), ScrollType.Immediate);
|
||||
this._widget.inputEditor.setValue('');
|
||||
|
||||
const wordInfo = this._editor.getModel()?.getWordAtPosition(position);
|
||||
|
||||
Reference in New Issue
Block a user