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

Show progress on plugin activation #7017

Merged
merged 1 commit into from
Feb 3, 2020
Merged

Conversation

amiramw
Copy link
Member

@amiramw amiramw commented Jan 30, 2020

Fixes: #6550

Signed-off-by: Amiram Wingarten [email protected]

What it does

Show progress loading message on theia shell status bar when vscode extension is activated. This can happen on activation event or on reconnects.

How to test

  • On theia start all extensions with activation event * should load with "Loading " message in the status bar.
  • Extension with activation event which is not * should show the same message when actual activation occur. For example install https://marketplace.visualstudio.com/items?itemName=camel-tooling.yo and when calling command "yo" there should be a status bar message "Loading yo"
  • On client disconnect from the server (for example server restart) reload of extensions should cause also the status bar messages.

Review checklist

Reminder for reviewers

@amiramw amiramw requested a review from akosyakov January 30, 2020 08:53
@akosyakov akosyakov added the plug-in system issues related to the plug-in system label Jan 31, 2020
@@ -185,7 +188,10 @@ export class PluginManagerExtImpl implements PluginManagerExt, PluginManager {
this.registry.set(plugin.model.id, plugin);
if (plugin.pluginPath && Array.isArray(plugin.rawModel.activationEvents)) {
const activation = async () => {
const title = `Loading ${plugin.model.displayName || plugin.model.name}`;
const id = await this.notificationMain.$startProgress({title, location: 'window'});
Copy link
Member

Choose a reason for hiding this comment

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

please use Theia or VS Code that formatting on save works

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

Fixes: 6550

Signed-off-by: Amiram Wingarten <[email protected]>
Copy link
Member

@akosyakov akosyakov left a comment

Choose a reason for hiding this comment

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

@amiramw thank you!

@amiramw amiramw merged commit 197990b into eclipse-theia:master Feb 3, 2020
@amiramw amiramw deleted the activat branch February 3, 2020 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plug-in system issues related to the plug-in system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[vscode][plugin] Indication when plugins/vscode are activated
2 participants