Skip to content

Commit

Permalink
Fixed issue with RTN's not exporting correctly with storageOnly=1. It…
Browse files Browse the repository at this point in the history
… seems that this flag has no effect routines which I guess I should have expected.
  • Loading branch information
Kenneth Shepherd committed Feb 19, 2019
1 parent 78d5b9a commit 7ca1588
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions commands/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export async function exportFile(name: string, fileName: string): Promise<any> {
}
const storageContent = storageData.result.content;

if (storageContent.length>1 && storageContent[0]) {
if (storageContent.length > 1 && storageContent[0] && storageContent.length < content.length) {
const storageContentString = storageContent.join("\n");
const contentString = content.join("\n");

Expand Down Expand Up @@ -108,14 +108,8 @@ export async function exportList(files: string[]): Promise<any> {
vscode.window.showWarningMessage('Nothing to export');
}
const { atelier, folder } = config().get('export');
/*
return Promise.all(
files.map(file => {
exportFile(file, getFileName(folder, file, atelier));
})
);
*/
const results = [];

const results = [];
for(let i=0;i<files.length;i++) {
const result = await limiter.schedule(() => exportFile(files[i], getFileName(folder, files[i], atelier)));
results.push(result);
Expand Down

0 comments on commit 7ca1588

Please sign in to comment.