Skip to content

Commit aac1db7

Browse files
committed
Add support for persisting and retrieving the last selected prune context configuration ID
1 parent 847c663 commit aac1db7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎apps/editor/src/views/panel/backend/panel-provider.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ import {
9292
INSTRUCTIONS_NO_CONTEXT_STATE_KEY,
9393
LAST_SELECTED_CODE_AT_CURSOR_CONFIG_ID_STATE_KEY,
9494
LAST_SELECTED_EDIT_CONTEXT_CONFIG_ID_STATE_KEY,
95+
LAST_SELECTED_PRUNE_CONTEXT_CONFIG_ID_STATE_KEY,
9596
PANEL_MODE_STATE_KEY,
9697
WEB_MODE_STATE_KEY,
9798
get_recently_used_presets_or_groups_key
@@ -858,6 +859,9 @@ export class PanelProvider implements vscode.WebviewViewProvider {
858859
),
859860
'code-at-cursor': this.context.workspaceState.get<string>(
860861
LAST_SELECTED_CODE_AT_CURSOR_CONFIG_ID_STATE_KEY
862+
),
863+
'prune-context': this.context.workspaceState.get<string>(
864+
LAST_SELECTED_PRUNE_CONTEXT_CONFIG_ID_STATE_KEY
861865
)
862866
}
863867
})

0 commit comments

Comments
 (0)