File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
src/vs/workbench/contrib/inlineChat/browser Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ export class InlineChatContentWidget implements IContentWidget {
124
124
}
125
125
return {
126
126
position : this . _position ,
127
- preference : [ ContentWidgetPositionPreference . BELOW ]
127
+ preference : [ ContentWidgetPositionPreference . ABOVE ]
128
128
} ;
129
129
}
130
130
Original file line number Diff line number Diff line change @@ -935,12 +935,14 @@ export class InlineChatController implements IEditorContribution {
935
935
936
936
} else if ( initialRender ) {
937
937
const selection = this . _editor . getSelection ( ) ;
938
- widgetPosition = selection . getEndPosition ( ) ;
939
- if ( Range . spansMultipleLines ( selection ) && widgetPosition . column === 1 ) {
940
- // selection ends on "nothing" -> move up to match the
941
- // rendered/visible part of the selection
942
- widgetPosition = this . _editor . getModel ( ) . validatePosition ( widgetPosition . delta ( - 1 , Number . MAX_SAFE_INTEGER ) ) ;
943
- }
938
+ widgetPosition = selection . getStartPosition ( ) ;
939
+ // TODO@jrieken we are not ready for this
940
+ // widgetPosition = selection.getEndPosition();
941
+ // if (Range.spansMultipleLines(selection) && widgetPosition.column === 1) {
942
+ // // selection ends on "nothing" -> move up to match the
943
+ // // rendered/visible part of the selection
944
+ // widgetPosition = this._editor.getModel().validatePosition(widgetPosition.delta(-1, Number.MAX_SAFE_INTEGER));
945
+ // }
944
946
this . _input . value . show ( widgetPosition ) ;
945
947
946
948
} else {
You can’t perform that action at this time.
0 commit comments