Skip to content

Commit

Permalink
quiet plugin unzipping log info
Browse files Browse the repository at this point in the history
Signed-off-by: kpge <gekangping@126.com>

Apply suggestions from code review

Co-Authored-By: Florent BENOIT <fbenoit@redhat.com>
  • Loading branch information
2 people authored and akosyakov committed Sep 11, 2019
1 parent a9a39db commit e2dc267
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ export class PluginVsCodeFileHandler implements PluginDeployerFileHandler {
}

async handle(context: PluginDeployerFileHandlerContext): Promise<void> {
// need to unzip
console.log('unzipping the plugin', context.pluginEntry());

const unpackedPath = path.resolve(this.unpackedFolder, path.basename(context.pluginEntry().path()));
console.log(`unzipping the VS Code extension '${path.basename(context.pluginEntry().path())}' to directory: ${unpackedPath}`);

await context.unzip(context.pluginEntry().path(), unpackedPath);
if (context.pluginEntry().path().endsWith('.tgz')) {
const extensionPath = path.join(unpackedPath, 'package');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ export class PluginTheiaFileHandler implements PluginDeployerFileHandler {
}

async handle(context: PluginDeployerFileHandlerContext): Promise<void> {
// need to unzip
console.log('unzipping the plugin', context.pluginEntry());

const unpackedPath = path.resolve(this.unpackedFolder, path.basename(context.pluginEntry().path()));
console.log(`unzipping the plug-in '${path.basename(context.pluginEntry().path())}' to directory: ${unpackedPath}`);

await context.unzip(context.pluginEntry().path(), unpackedPath);

context.pluginEntry().updatePath(unpackedPath);
Expand Down

0 comments on commit e2dc267

Please sign in to comment.