Skip to content

Commit 7ca1588

Browse files
author
Kenneth Shepherd
committed
Fixed issue with RTN's not exporting correctly with storageOnly=1. It seems that this flag has no effect routines which I guess I should have expected.
1 parent 78d5b9a commit 7ca1588

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

commands/export.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export async function exportFile(name: string, fileName: string): Promise<any> {
5757
}
5858
const storageContent = storageData.result.content;
5959

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

@@ -108,14 +108,8 @@ export async function exportList(files: string[]): Promise<any> {
108108
vscode.window.showWarningMessage('Nothing to export');
109109
}
110110
const { atelier, folder } = config().get('export');
111-
/*
112-
return Promise.all(
113-
files.map(file => {
114-
exportFile(file, getFileName(folder, file, atelier));
115-
})
116-
);
117-
*/
118-
const results = [];
111+
112+
const results = [];
119113
for(let i=0;i<files.length;i++) {
120114
const result = await limiter.schedule(() => exportFile(files[i], getFileName(folder, files[i], atelier)));
121115
results.push(result);

0 commit comments

Comments
 (0)