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

Made menu and keybinding contributions extensible #8188

Merged
merged 1 commit into from
Jul 16, 2020

Conversation

kittaakos
Copy link
Contributor

From now on, downstream project can subclass and rebind various menu and
keybinding contributions to overcome a Theia limitation.

See: #8175

Signed-off-by: Akos Kitta kittaakos@typefox.io

What it does

  • I built the app, checked the File and Edit menus: they must be the same as before.
  • I tried a few keybindings in a monaco editor. Such as undo, redo, toggle line comment, delete line.

From now one, one can customize and rebind the File and Edit menu contributions to overcome #8175.
This PR also makes the generic editor and the monaco keybinding contributions customizable.

How to test

Review checklist

Reminder for reviewers

From now on, downstream project can subclass and rebind various menu and
keybinding contributions to overcome a Theia limitation.

See: #8175
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
@vince-fugnitto vince-fugnitto added extensibility issues to simplify ability to extend Theia keybindings issues related to keybindings menus issues related to the menu labels Jul 16, 2020
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

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

The changes look good to me and I did not notice any regressions 👍

@kittaakos kittaakos merged commit beb68c7 into master Jul 16, 2020
@kittaakos kittaakos deleted the bind-file-menu-contribution branch August 18, 2020 10:16
kittaakos pushed a commit that referenced this pull request Nov 7, 2020
From now on, the browser and electron frontends listen on different
events when it comes to saving the app state and releasing the resources.
The browser behavior is unchanged.
Made the `will-prevent-unload` handling sync.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
kittaakos pushed a commit that referenced this pull request Nov 12, 2020
 - Moved the `beforeunload` handling logic to the frontend.
 - Removed the `attachWillPreventUnload` from the main electron app.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
kittaakos pushed a commit that referenced this pull request Nov 13, 2020
 - Moved the `beforeunload` handling logic to the frontend.
 - Removed the `attachWillPreventUnload` from the main electron app.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
kittaakos pushed a commit that referenced this pull request Nov 13, 2020
 - Moved the `beforeunload` handling logic to the frontend.
 - Removed the `attachWillPreventUnload` from the main electron app.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
kittaakos pushed a commit that referenced this pull request Nov 13, 2020
 - Moved the `beforeunload` handling logic to the frontend.
 - Removed the `attachWillPreventUnload` from the main electron app.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
paul-marechal added a commit that referenced this pull request Nov 13, 2020
Signed-off-by: Paul <paul.marechal@ericsson.com>
paul-marechal added a commit that referenced this pull request Nov 13, 2020
Signed-off-by: Paul <paul.marechal@ericsson.com>
paul-marechal added a commit that referenced this pull request Nov 13, 2020
Signed-off-by: Paul <paul.marechal@ericsson.com>
paul-marechal pushed a commit that referenced this pull request Nov 16, 2020
 - Moved the `beforeunload` handling logic to the frontend.
 - Removed the `attachWillPreventUnload` from the main electron app.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
paul-marechal pushed a commit that referenced this pull request Nov 16, 2020
 - Moved the `beforeunload` handling logic to the frontend.
 - Removed the `attachWillPreventUnload` from the main electron app.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
kittaakos pushed a commit that referenced this pull request Nov 18, 2020
 - Moved the `beforeunload` handling logic to the frontend.
 - Removed the `attachWillPreventUnload` from the main electron app.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extensibility issues to simplify ability to extend Theia keybindings issues related to keybindings menus issues related to the menu
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants