-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
output: improve output display #7827
Conversation
The following commit performs the following updates: - improves the display of the output content (output-view). - refactors the ouput-view to make use of css variables. - renames the `--theia-termina-font-family` variable. Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
We will switch to monco editor with #7570. Would that make this issue obsolete? |
Yes I remember :) The switch to the monaco-editor will make the output-view will definitely improve the view (like vscode). I noticed the output was not easy to read during a pull-request review and thought that a quick fix (even if obsolete when the switch happens) might be an improvement to end-users. I also do not know when the switch will happen as the pull-request is already quite involving and still needs to be finalized and reviewed. If you do not believe the effort is worth it, I can close the pull-request without any problems :) |
No no, I was stupid and did not notice it is already a PR. It affects only the electron-based app, right? I am happy to verify right now... |
No problem! It is for both the |
I see. It is a bit too "heavy" for me in the browser...
but I agree, it is hardly visible in electron (with the dark theme) so it is a reasonable change. 👍 Other committers can vote or decide I do not have any objections. Please keep in mind #7570. Regarding the code change you did just to understand, it's all equivalent with adding |
Yes, I refactored the code from the widget itself into the css stylesheet, and updated the font-weight for the monospace font-family. Originally, the font-weight on electron was too thin and made it difficult to easily view the content. I think it will look much better like you said when we start using monaco in the view. |
What it does
The previous font-weight of the ouput-view made the visibility difficult (especially on lighter themes), and this pull-request updates it to be more consistent and easier to use.
The following pull-request updates the output-view to improve the output display:
--theia-terminal-font-family
to the more generic name--theia-monospace-font-family
(the variable was previously unused).Before & After
_Before_:
After:
How to test
master:
pull-request:
Alternatively you may also set the JSON trace to verbose and open a JSON file (ex: 'package.json') to see much more output.
Review checklist
Reminder for reviewers
Signed-off-by: vince-fugnitto vincent.fugnitto@ericsson.com