Skip to content

Commit 1449c44

Browse files
authored
Merge pull request microsoft#162547 from microsoft/hediet/fix-162444-release
Fixes microsoft#162275
2 parents 9fb452c + e4fdd50 commit 1449c44

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)