Skip to content

Commit 8aecd44

Browse files
xaisafisa
andauthoredFeb 28, 2024··
fix: use correct plugin source path in hosted plugin deployer handler (#13427)
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>
1 parent 627dad4 commit 8aecd44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎packages/plugin-ext/src/hosted/node/hosted-plugin-deployer-handler.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ export class HostedPluginDeployerHandler implements PluginDeployerHandler {
260260
const knownLocations = this.sourceLocations.get(id) ?? new Set();
261261
const maybeStoredLocations = entry.getValue('sourceLocations');
262262
const storedLocations = Array.isArray(maybeStoredLocations) && maybeStoredLocations.every(location => typeof location === 'string')
263-
? maybeStoredLocations.concat(entry.originalPath())
264-
: [entry.originalPath()];
263+
? maybeStoredLocations.concat(entry.rootPath)
264+
: [entry.rootPath];
265265
storedLocations.forEach(location => knownLocations.add(location));
266266
this.sourceLocations.set(id, knownLocations);
267267
}

0 commit comments

Comments
 (0)
Please sign in to comment.