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

fix: use correct path for hosted plugin deployer handler #13427

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

xai
Copy link
Contributor

@xai xai commented Feb 27, 2024

What it does

This patch stores plugin.rootPath instead of plugin.originalPath() as the source location when a plugin is deployed.
This ensures that the plugin is deleted from the deployment directory when uninstalled.

Contributed on behalf of STMicroelectronics

Fixes #13379

How to test

  1. Install a vscode extension either from the vsix registry or from a local vsix file
  2. Verify that the vscode extension is installed (and deployed to e.g., ~/.theia/deployedPlugins/
  3. Uninstall the extension again
  4. Verify that it has been removed from the ~/.theia/deployedPlugins/
  5. Restart theia
  6. Verify that the plugin is not installed anymore

Follow-ups

Review checklist

Reminder for reviewers

To ensure that plugins can be removed from the deployed plugins location,
the correct source path of the plugin must be stored.

Contributed on behalf of STMicroelectronics

Signed-off-by: Olaf Lessenich <olessenich@eclipsesource.com>
Co-authored-by: safisa <safi@k2view.com>
Copy link
Contributor

@tsmaeder tsmaeder left a comment

Choose a reason for hiding this comment

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

Works like a charm

@tsmaeder tsmaeder merged commit 8aecd44 into eclipse-theia:master Feb 28, 2024
14 checks passed
@jfaltermeier jfaltermeier added this to the 1.47.0 milestone Feb 29, 2024
This was referenced Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Uninstall an extension does not deleted the extension from the ".theia/deployedPlugins" folder
3 participants