Skip to content

Commit

Permalink
add state management (#254)
Browse files Browse the repository at this point in the history
Co-authored-by: Hariharan Subramanian <[email protected]>
  • Loading branch information
peterbom and hsubramanianaks authored Oct 6, 2023
1 parent 5b701ea commit dda4f38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/panels/BasePanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ export abstract class BasePanel<TContent extends ContentId> {
enableScripts: true,
// Restrict the webview to only load resources from the `webview-ui/dist` directory
localResourceRoots: [Uri.joinPath(this.extensionUri, "webview-ui/dist")],
// persist the state of the webview across restarts
retainContextWhenHidden: true
};

const title = dataProvider.getTitle();
Expand Down

0 comments on commit dda4f38

Please sign in to comment.