Skip to content
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

chore: Switched to window.zoomLevel preference #1675

Merged
merged 2 commits into from
Nov 29, 2022
Merged

chore: Switched to window.zoomLevel preference #1675

merged 2 commits into from
Nov 29, 2022

Conversation

kittaakos
Copy link
Contributor

Depends on #1662


Motivation

To align the IDE2 codebase with the preferences provided by the Theia framework.

Change description

Breaking

  • Users' arduino.window.zoomLevel setting will be ignored. Users have to set the preferred zoom level in one of the following ways:
    • Ctrl/⌘+= and Ctrl/⌘+-,
    • File > Increase Font Size and File > Decrease Font Size (assuming that the interface scale is automatic),
    • Open the Settings dialog, and use the Interface Scale stepper
      to readjust the desired scale level.

Alternatively, users can restore the interface scale value via the Adcanced Settings:

Currently, when opening the settings.json in the file, there is a deprecation message for the old settings key:

Screen Shot 2022-11-14 at 17 25 04

window.zoomLevel.mp4

The behavior of the window.zoomLevel setting is the same as the deprecated arduino.window.zoomLevel.

This also fixes a bug that triggered saving the zoomLevel twice.

Other information

Closes #1657

If required, I can remove the deprecation message of the arduino.window.zoomLevel. Users will see this in the settings.json editor:

Screen Shot 2022-11-14 at 17 17 00

Reviewer checklist

  • PR addresses a single concern.
  • The PR has no duplicates (please search among the Pull Requests before creating one)
  • PR title and description are properly filled.
  • Docs have been added / updated (for bug fixes / features)

@kittaakos kittaakos added topic: code Related to content of the project itself type: enhancement Proposed improvement labels Nov 14, 2022
Copy link
Contributor

@AlbyIanna AlbyIanna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works perfectly for me and code is fine to me 👍

@kittaakos kittaakos added the status: on hold Do not proceed at this time label Nov 22, 2022
@kittaakos kittaakos removed the status: on hold Do not proceed at this time label Nov 29, 2022
Base automatically changed from theia-1.31.1 to main November 29, 2022 08:39
Akos Kitta added 2 commits November 29, 2022 09:42
Deprecated `arduino.window.zoomLevel`.

Closes #1657

Signed-off-by: Akos Kitta <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop the arduino.window.zoomLevel preference and use Theia's window.zoomLevel instead
3 participants