We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b2d615 commit 9998d8eCopy full SHA for 9998d8e
src/common/exportsManager.ts
@@ -158,6 +158,9 @@ export class ExportsManager extends EventEmitter<ExportsManagerEvents> {
158
}): AvailableExport {
159
try {
160
const exportNameWithExtension = validateExportName(ensureExtension(exportName, "json"));
161
+ if (this.storedExports[exportNameWithExtension]) {
162
+ throw new Error("Export with same name is either already available or being generated.");
163
+ }
164
const exportURI = `exported-data://${encodeURIComponent(exportNameWithExtension)}`;
165
const exportFilePath = path.join(this.exportsDirectoryPath, exportNameWithExtension);
166
const inProgressExport: InProgressExport = (this.storedExports[exportNameWithExtension] = {
0 commit comments