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

Electron main fixup #8069

Closed
wants to merge 22 commits into from
Closed

Electron main fixup #8069

wants to merge 22 commits into from

Conversation

kittaakos
Copy link
Contributor

@kittaakos kittaakos commented Jun 22, 2020

@marechal-p, this PR proposes a few changes to your electron-main PR and adds an updater example. I have dropped the file argument support; it does not work on macOS.

What it does

How to test

Review checklist

Reminder for reviewers

elaihau and others added 15 commits June 16, 2020 17:24
- The vs code built in extension `npm` does not work with Theia's plugin
extension due to not being able to find the constructor of `Task2`. This
pull request addes the missing constructor, and upgrades the version of
`npm` in Theia.

Signed-off-by: Liang Huang <lhuang4@ualberta.ca>
- In VS Code a `detail` property can be added to the contributed and configured tasks. The content of that `detail` property is displayed as part of the task quick open menu items. With changes in this commit, `detail` is added to the task config schema.

Signed-off-by: Liang Huang <lhuang4@ualberta.ca>
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
`--sort=commiterdate` behaves differently with `2.27.0.windows.1`.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
Fixes: #7979

Added a `Clear-All` toolbar item, which clears all the existing problem
markers

Signed-off-by: Anas Shahid <muhammad.shahid@ericsson.com>
editor.maxTokenizationLineLength default value changed back to 400, the value 20000 like in VS Code breaks on browser and some electrons when opening minified files.

Signed-off-by: João Gaião <dactyllo@gmail.com>
Signed-off-by: Thomas Mäder <tmader@redhat.com>
Signed-off-by: Mikael Desharnais <mikael.desharnais@gmail.com>
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
solves race condition that happens when there are several consecutive calls to saveContentChanges.
since before this fix, version was passed to isInSync before asynchronously calling getFileStat there were times when it was old on the sync check but current on this.version.
then onDidChangeContentsEmitter.fire was called wrongly

Signed-off-by: Amiram Wingarten <amiram.wingarten@sap.com>
Fixes: #8053

The following commit updates the `download:plugins` script to report
when the mandatory `theiaPlugins` property is missing from the
`package.json` resulting in no plugins being downloaded.

Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
kenneth-marut-work and others added 2 commits June 22, 2020 18:23
Signed-off-by: Kenneth Marut <kenneth.marut@ericsson.com>
The Contextmenu was not showing the option to clear the Output,
because seperate Commands for the toolbar and contextmenu are required.

Signed-off-by: Jan-Niklas Spangenberg <jan-niklas.spangenberg@gmx.de>
@kittaakos kittaakos force-pushed the electron-main-fixup branch from 1eceab6 to d200927 Compare June 23, 2020 09:41
@kittaakos
Copy link
Contributor Author

@marechal-p, I have fixed and restored the cwd support on macOS. When you start the app from the root of the theia repository, you can expect the following behavior.

  • yarn --cwd ./examples/electron start -> [no file]: starts the app with the default location (.) and restores the previous workspace if any.
  • yarn --cwd ./examples/electron start ../.. -> [relative file]: this will start the app with an opened workspace on theia.
  • yarn --cwd ./examples/electron start ~/Desktop -> [absolute file]: this will start the app with an opened workspace on my Desktop.

Since your previous review was positive, I am hoping for no further changes here. Any remarks? Thanks!

vince-fugnitto and others added 3 commits June 23, 2020 08:06
Fixes: #8016

The following pull-request updates the plugin system to include
the registration of `view containers` in the `open view` prefix menu.

Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
Signed-off-by: Colin Grant <colin.grant@ericsson.com>
The following pull-request updates the `preferences` modified scope
message to display messages in the `user` tab when there are updates to
the preference in the `workspace` scope.

Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
@paul-marechal paul-marechal force-pushed the electron-main-fixup branch 4 times, most recently from d71cef3 to 3c82aa0 Compare June 23, 2020 14:33
paul-marechal and others added 2 commits June 23, 2020 11:10
All the logic for the electron main process currently has to be added to
our generators, making it hard to extend without committing to Theia.

This commit re-arranges the way Electron is launched to allow people to
more easily change the behavior of their application.

Add a basic CLI to open a workspace by doing `app path/to/workspace`.

CLI can be overriden by application makers by extending and rebinding
`ElectronApplication.launch` and handling yourself the
`ExecutionParams`.

Signed-off-by: Paul Maréchal <paul.marechal@ericsson.com>
Co-Authored-By: Akos Kitta <kittaakos@typefox.io>
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
@paul-marechal
Copy link
Member

Ok the rebase did something weird, I will fix this.

@paul-marechal
Copy link
Member

Oh no ok this is the wrong PR I was looking at, I will close this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.