Skip to content

Commit

Permalink
fix: retrieve metadata command does work
Browse files Browse the repository at this point in the history
  • Loading branch information
Codeneos committed Aug 3, 2023
1 parent 39a2c3e commit 4e57901
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/salesforce/src/deploy/retrieveResultPackage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export class RetrieveResultPackage {
* Returns true if the retrieve was successful and an archive with the retriebe result is available.
*/
public get success(): boolean {
return !!this.result.zipFile;
return this.archives !== undefined;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,13 @@ export default class RetrieveMetadataCommand extends MetadataCommand {
throw new Error('No metadata retrieved from target org.');
}

if (this.vlocode.config.salesforce.exportFormat === 'sfdx') {
void vscode.window.showWarningMessage('Decomposing metadata into SFDX format is currently not supported.');
}

const unpackedFiles = new Array<string>();
for (const file of result.getFiles()) {
try {
if (this.vlocode.config.salesforce.exportFormat === 'sfdx') {
void vscode.window.showWarningMessage('Decomposing metadata into SFDX format is currently not supported.');
}
const unpackTarget = path.join(vscode.workspace.workspaceFolders?.[0].uri.fsPath ?? '.', this.vlocode.config.salesforce.exportFolder);
await file.writeFile(unpackTarget);
this.logger.log(`Exported ${file.archivePath}`);
Expand Down

0 comments on commit 4e57901

Please sign in to comment.