mirror of
https://github.com/Microsoft/vscode
synced 2024-10-12 06:17:18 +00:00
Merge pull request #162444 from microsoft/hediet/classic-cheetah
Fixes #162275
This commit is contained in:
commit
c6313652fb
|
@ -320,6 +320,15 @@ class ActionsContentWidget extends Disposable implements IContentWidget {
|
|||
}
|
||||
|
||||
getPosition(): IContentWidgetPosition | null {
|
||||
// We cannot put the content widget after line 0, as line 0 gets normalized to line 1.
|
||||
// Thus, we put the content widget before line 1 to make it slightly less buggy.
|
||||
// TODO: Fix this properly.
|
||||
if (this.lineNumber === 0) {
|
||||
return {
|
||||
position: { lineNumber: 1, column: 1, },
|
||||
preference: [ContentWidgetPositionPreference.ABOVE],
|
||||
};
|
||||
}
|
||||
return {
|
||||
position: { lineNumber: this.lineNumber, column: 1, },
|
||||
preference: [ContentWidgetPositionPreference.BELOW],
|
||||
|
|
Loading…
Reference in a new issue