You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bugIssue identified by VS Code Team member as probable bugeditor-hoverEditor mouse hoverinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded
The dialog box appears over the code, so I can't click on any of the code. I have attached a video. This only started occurring with the latest release. Something has changed, such as the algorithm to place the dialog box or the speed at which the dialog box appears. unused.zip
Are there any specific steps you followed to repro this? May be you have some settings applied where I do not have or vice-versa. Is it possible to reproduce this by disabling all extensions except the extension that provides quick fixes?
I would probably suggest making sure the window size is the default size when first installed. Maybe if the window size is larger, the algorithm will come up with a different place to put the box. Also I would suggest diffing between the previous version as it didn't happen then. I am not even sure if there was a quickfix suggestion for unused vars in the previous version.
It kind of looks like the "quickfix" section is not factored into the algorithm that places the box and it is instead aligning with the box excluding that section.
I cloned vscode and built it from the source. The same problem occurred. I started to debug it and confirmed my suspicion that the quick fix bar (the action bar) is not being recognised in the positioning algorithm. I altered the css of monaco to give an explicit height to the action bar and that fixed the problem.
.monaco-hover .hover-row.status-bar {
font-size: 12px;
line-height: 22px;
height: 22px; // I added this
}
Ok so what is happening is the dialog box and the action bar are being made visible at different times. A race condition determines whether monaco measures the height of the dialog box with the action bar visible or not. This is why the bug will not occur if you step through the code. Setting the height explicitly works because it is measured even if there is no text in the element.
Sandeep Somavarapu (@sandy081) The reason you can't reproduce it is because, as you can see, you have "Peek Problems" in addition to the "Quick Fixes". Looking at the code of renderMarkerStatusbar, the peek problems code is run synchronously, but the quick fix action is based on a promise that allows for the race condition. For people who don't have anything other than "Quick Fixes" in the action bar, it will cause the bug.
It looks like the solution is to make the placeholder synchronous, or the entire actions container synchronous.
bugIssue identified by VS Code Team member as probable bugeditor-hoverEditor mouse hoverinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded
Activity
mjbvz commentedon Dec 13, 2020
Why can't you rename it? Please share a screenshot (or, even better, a video) of what isn't working
andrewitsover commentedon Dec 14, 2020
The dialog box appears over the code, so I can't click on any of the code. I have attached a video. This only started occurring with the latest release. Something has changed, such as the algorithm to place the dialog box or the speed at which the dialog box appears.
unused.zip
andrewitsover commentedon Dec 14, 2020
Here are some screenshots as well.


mjbvz commentedon Dec 14, 2020
Sandeep Somavarapu (@sandy081) Assigning you since this looks like a bug with the positioning of the problems hover widget
sandy081 commentedon Dec 16, 2020
I cannot repro it.
Are there any specific steps you followed to repro this? May be you have some settings applied where I do not have or vice-versa. Is it possible to reproduce this by disabling all extensions except the extension that provides quick fixes?
sandy081 commentedon Dec 16, 2020
Alexandru Dima (@alexdima) Any idea why this can happen?
andrewitsover commentedon Dec 16, 2020
The only extension I have is debugger for Chrome. The only settings I have are:
I would probably suggest making sure the window size is the default size when first installed. Maybe if the window size is larger, the algorithm will come up with a different place to put the box. Also I would suggest diffing between the previous version as it didn't happen then. I am not even sure if there was a quickfix suggestion for unused vars in the previous version.
andrewitsover commentedon Dec 16, 2020
It kind of looks like the "quickfix" section is not factored into the algorithm that places the box and it is instead aligning with the box excluding that section.
andrewitsover commentedon Dec 17, 2020
I cloned vscode and built it from the source. The same problem occurred. I started to debug it and confirmed my suspicion that the quick fix bar (the action bar) is not being recognised in the positioning algorithm. I altered the css of monaco to give an explicit height to the action bar and that fixed the problem.
andrewitsover commentedon Dec 17, 2020
Ok so what is happening is the dialog box and the action bar are being made visible at different times. A race condition determines whether monaco measures the height of the dialog box with the action bar visible or not. This is why the bug will not occur if you step through the code. Setting the height explicitly works because it is measured even if there is no text in the element.
andrewitsover commentedon Dec 17, 2020
Sandeep Somavarapu (@sandy081) The reason you can't reproduce it is because, as you can see, you have "Peek Problems" in addition to the "Quick Fixes". Looking at the code of renderMarkerStatusbar, the peek problems code is run synchronously, but the quick fix action is based on a promise that allows for the race condition. For people who don't have anything other than "Quick Fixes" in the action bar, it will cause the bug.
It looks like the solution is to make the placeholder synchronous, or the entire actions container synchronous.
[-]TS(6133)[/-][+]Quick Fix shows at wrong position[/+]teal2 commentedon Jan 5, 2021
Same problem here.