usernamehw / vscode-error-lens

VSCode extension that enhances display of errors and warnings.
https://marketplace.visualstudio.com/items?itemName=usernamehw.errorlens
MIT License
601 stars 32 forks source link

Toggling breakpoint makes editor shift to accomodate gutter #183

Closed lonix1 closed 1 year ago

lonix1 commented 1 year ago

I'm using the latest version 3.13.0, with the latest vscode 1.82.0.

When I add a breakpoint, the whole editor shifts to the right - to make room for a gutter space. An example can be seen here - but in my case it happens even if there are no errors.

Is there a way to disable this behaviour - so the gutter will be the same size all the time, and the editor won't dance left/right when I toggle breakpoints? (That's how it used to be. I'm not sure in which version this new behaviour appeared.)

usernamehw commented 1 year ago

After this issue https://github.com/microsoft/vscode/issues/5923 was completed in VSCode - all extensions have this behavior.

Maybe you want to file an issue for VSCode https://github.com/microsoft/vscode/issues repo so that gutter icons of all extensions would work the way they used to (or setting "oneIconPreferBreakpoint" | "oneIconPreferExtensionIcon" | "multipleIcons")? You'll need to gather 20 upvotes in 60 days for that, though.

On the Error Lens extension side, the only other option is to check if the line has breakpoint every time rendering gutter decorations and not show icons for those lines.

lonix1 commented 1 year ago

Hi @usernamehw I opened an issue here.

I don't understand the core problem, so I can't add much value. Would you please help me to explain the issue better? (And add your upvote... we need those 20! :smile:)

I don't know which other extensions are affected by this problem, do you? Maybe we could ask for their upvoting help too.

lonix1 commented 11 months ago

Anyone here who still has this issue, please upvote this vscode bug issue.

We need 20 votes in 60 days for them to consider fixing it.