File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/vs/workbench/contrib/inlineChat/browser Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import { ChatWidget } from 'vs/workbench/contrib/chat/browser/chatWidget';
19
19
import { ChatAgentLocation } from 'vs/workbench/contrib/chat/common/chatAgents' ;
20
20
import { editorBackground , editorForeground , inputBackground } from 'vs/platform/theme/common/colorRegistry' ;
21
21
import { ChatModel } from 'vs/workbench/contrib/chat/common/chatModel' ;
22
+ import { Range } from 'vs/editor/common/core/range' ;
22
23
23
24
export class InlineChatContentWidget implements IContentWidget {
24
25
@@ -158,6 +159,7 @@ export class InlineChatContentWidget implements IContentWidget {
158
159
this . _visible = true ;
159
160
this . _focusNext = true ;
160
161
162
+ this . _editor . revealRangeNearTopIfOutsideViewport ( Range . fromPositions ( position ) ) ;
161
163
this . _widget . inputEditor . setValue ( '' ) ;
162
164
163
165
const wordInfo = this . _editor . getModel ( ) ?. getWordAtPosition ( position ) ;
You can’t perform that action at this time.
0 commit comments