Skip to content

Commit 0c860cd

Browse files
committed
Fix error on editor open
1 parent 38cffcb commit 0c860cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/contrib/positronPlotsEditor/browser/positronPlotsEditor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ export class PositronPlotsEditor extends EditorPane implements IPositronPlotsEdi
177177
throw new Error('Plot client not found');
178178
}
179179

180+
await super.setInput(input, options, context, token);
181+
180182
input.setName(this._plotClient.metadata.suggested_file_name ?? createSuggestedFileNameForPlot(this.storageService));
181183

182184
this.renderContainer(this._plotClient);
@@ -188,8 +190,6 @@ export class PositronPlotsEditor extends EditorPane implements IPositronPlotsEdi
188190
this.renderContainer(this._plotClient);
189191
}
190192
});
191-
192-
await super.setInput(input, options, context, token);
193193
}
194194

195195
override layout(dimension: DOM.Dimension): void {

0 commit comments

Comments
 (0)