Skip to content

How does Theia listen to install and uninstall vscode plug-ins at runtime #13194

Discussion options

You must be logged in to vote

Hi @zx616456607,
You are right. I saw that there is an outOfSync flag on the plugin data which indicates that the installation status has changed. So I think if we can calculate the newly installed plugins and then filter the others through that flag we might get the behavior that we want:

        let pluginsById = new Map(this.pluginService.plugins.map(plugin => [plugin.model.id + '_' + plugin.model.version, plugin]));
        this.pluginService.onDidChangePlugins(() => {
            const newPluginsById = new Map(this.pluginService.plugins.map(plugin => [plugin.model.id + '_' + plugin.model.version, plugin]));
            const installed = [...newPluginsById.keys()].filter(newPluginId =…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@zx616456607
Comment options

@martin-fleck-at
Comment options

Answer selected by zx616456607
@zx616456607
Comment options

@martin-fleck-at
Comment options

@martin-fleck-at
Comment options

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