Skip to content

Commit 7e71ef5

Browse files
authored
Retain circuit editor when hidden (#2315)
This avoid the delay when switching away from the circuit editor and then back while it reloads the UX.
1 parent bfb3d15 commit 7e71ef5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vscode/src/circuitEditor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export class CircuitEditorProvider implements vscode.CustomTextEditorProvider {
1212
const providerRegistration = vscode.window.registerCustomEditorProvider(
1313
CircuitEditorProvider.viewType,
1414
provider,
15+
{ webviewOptions: { retainContextWhenHidden: true } },
1516
);
1617
return providerRegistration;
1718
}

0 commit comments

Comments
 (0)