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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
This will break some existing extensions, right? I know my extension uses a workaround that is not compatible. I'll go fix it so that it can handle this. But for extensions where the authors are not aware... I do agree it is clean this way, and is mostly interested in learning about the reasoning for these kind of considerations.
The reason will be displayed to describe this comment to others. Learn more.
This change has broken an extension I'm working on. I can fix it but will cause users on an old version to get a broken experience (huge fonts and layout).
This trick was to consume this var as calc(var(--vscode-editor-font-size) * 1px).
7e2d796
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will break some existing extensions, right? I know my extension uses a workaround that is not compatible. I'll go fix it so that it can handle this. But for extensions where the authors are not aware... I do agree it is clean this way, and is mostly interested in learning about the reasoning for these kind of considerations.
7e2d796
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are correct that this does potentially break some extension. I ultimately decided that making this fix is reasonable because:
vscode-editor-font-size
is rarely used. I checked the top set of extensions and only see a handful of usersvscode-font-size
does havepx
units and working around it was not easyWe are also releasing this fix early in the VS Code 1.42 ship cycle so that extensions can report if it does break anything and make fixes
7e2d796
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense for consistency and considering your default is 13px :)
7e2d796
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change has broken an extension I'm working on. I can fix it but will cause users on an old version to get a broken experience (huge fonts and layout).
This trick was to consume this var as
calc(var(--vscode-editor-font-size) * 1px)
.