Skip to content

Commit 6d46cbe

Browse files
committed
Save checked paths to workspace state in save checked files state
- it's been reported that context restoration on startup does't work properly └── apps └── editor └── src ├── constants │ └── state-keys.ts ├── context │ ├── context-initialization.ts │ ├── helpers │ │ ├── get-all-workspace-files.ts │ │ └── get-selected-files.ts │ ├── providers │ │ ├── open-editors │ │ │ └── open-editors-provider.ts │ │ ├── selected-files │ │ │ └── selected-files-provider.ts │ │ └── workspace │ │ ├── modules │ │ │ ├── index.ts │ │ │ └── token-calculator.ts │ │ └── workspace-provider.ts │ ├── shared-context-state.ts │ └── utils │ └── shrink-file │ ├── index.ts │ ├── languages │ │ ├── c-style.ts │ │ ├── css.ts │ │ ├── html.ts │ │ ├── jsx.ts │ │ ├── python.ts │ │ ├── ruby.ts │ │ └── sql.ts │ ├── shrink-file.spec.ts │ ├── shrink-file.ts │ └── test-cases │ ├── c-style │ │ ├── input.txt │ │ └── output.txt │ ├── css │ │ ├── input.txt │ │ └── output.txt │ ├── html │ │ ├── input.txt │ │ └── output.txt │ ├── jsx │ │ ├── input.txt │ │ └── output.txt │ ├── python │ │ ├── input.txt │ │ └── output.txt │ ├── ruby │ │ ├── input.txt │ │ └── output.txt │ ├── scss │ │ ├── input.txt │ │ └── output.txt │ └── sql │ ├── input.txt │ └── output.txt └── extension.ts
1 parent ab1e4fc commit 6d46cbe

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎apps/editor/src/context/providers/workspace/workspace-provider.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ export class WorkspaceProvider
151151
}
152152

153153
private async _save_checked_files_state(): Promise<void> {
154+
await this._extension_context.workspaceState.update(
155+
CONTEXT_CHECKED_PATHS_STATE_KEY,
156+
this.get_all_checked_paths()
157+
)
154158
await this._extension_context.workspaceState.update(
155159
CONTEXT_CHECKED_TIMESTAMPS_STATE_KEY,
156160
Object.fromEntries(this._checked_timestamps)

0 commit comments

Comments
 (0)