-
Notifications
You must be signed in to change notification settings - Fork 28.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes apply debug console font size setting to input field #91261
Conversation
@@ -305,6 +305,16 @@ export class Repl extends ViewPane implements IHistoryNavigationWidget { | |||
`; | |||
|
|||
this.tree.rerender(); | |||
|
|||
this.replInput.updateOptions({ | |||
fontSize, |
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.
Why not take the fontFamily
, lineHeight
computed above? Why use debugConsole.
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.
Those values are for the inline css
lineHeight
computed above has typestring
(? `${debugConsole.lineHeight}px` : '1.4em'
) and the one needed forupdateOptions
must benumber
fontFamily
computed above resolves to'var(--monaco-monospace-font)'
when the default font is requested
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. Thank you
@jeanp413 great PR as usual, thank you very much for creating this. |
@jeanp413 your comment makes sense. Once we resolve the centering of the chevron (if possible) I would be open to merge in this PR. |
Pushed some changes to center de input chevron, let me know if the css is ok |
@jeanp413 Yeah, css looks great. Let's merge this. |
This PR fixes #90714