Skip to content

Commit

Permalink
Fix: Plugins folders are created with exclamanation mark, which break…
Browse files Browse the repository at this point in the history
…s webpack

sign commit

Signed-off-by: Shahar Harari <shahar.harari@sap.com>

sign commit

Signed-off-by: Shahar Harari <shahar.harari@sap.com>
  • Loading branch information
shahar-h authored and vince-fugnitto committed May 14, 2020
1 parent 87c7705 commit 252cae7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class PluginVsCodeFileHandler implements PluginDeployerFileHandler {
if (context.pluginEntry().type === PluginType.User) {
extensionsDirUri = await this.environment.getExtensionsDirUri();
}
return FileUri.fsPath(extensionsDirUri.resolve(filenamify(context.pluginEntry().id())));
return FileUri.fsPath(extensionsDirUri.resolve(filenamify(context.pluginEntry().id(), { replacement: '_' })));
}

protected async decompress(extensionDir: string, context: PluginDeployerFileHandlerContext): Promise<void> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ export class PluginTheiaFileHandler implements PluginDeployerFileHandler {
if (context.pluginEntry().type === PluginType.User) {
pluginsDirUri = await this.environment.getPluginsDirUri();
}
return FileUri.fsPath(pluginsDirUri.resolve(filenamify(context.pluginEntry().id())));
return FileUri.fsPath(pluginsDirUri.resolve(filenamify(context.pluginEntry().id(), { replacement: '_' })));
}
}

0 comments on commit 252cae7

Please sign in to comment.