How does Theia listen to install and uninstall vscode plug-ins at runtime #13194
-
Please give a code example, thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @zx616456607, You can use the You can see an example for querying the data in the theia/packages/plugin-ext/src/main/browser/plugin-ext-widget.tsx Lines 32 to 81 in c97a496 Another example where we have a keep the list of installed VS Code plugins is theia/packages/vsx-registry/src/browser/vsx-extensions-model.ts Lines 242 to 268 in c97a496 I hope that helps you get started with this. |
Beta Was this translation helpful? Give feedback.
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: