Skip to content

Commit e4fdd50

Browse files
committed
1 parent 9fb452c commit e4fdd50

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,15 @@ class ActionsContentWidget extends Disposable implements IContentWidget {
320320
}
321321

322322
getPosition(): IContentWidgetPosition | null {
323+
// We cannot put the content widget after line 0, as line 0 gets normalized to line 1.
324+
// Thus, we put the content widget before line 1 to make it slightly less buggy.
325+
// TODO: Fix this properly.
326+
if (this.lineNumber === 0) {
327+
return {
328+
position: { lineNumber: 1, column: 1, },
329+
preference: [ContentWidgetPositionPreference.ABOVE],
330+
};
331+
}
323332
return {
324333
position: { lineNumber: this.lineNumber, column: 1, },
325334
preference: [ContentWidgetPositionPreference.BELOW],

0 commit comments

Comments
 (0)