File tree Expand file tree Collapse file tree
context/providers/workspace Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,15 @@ export const duplicate_workspace_command = (
1616 'codeWebChat.duplicateWorkspace' ,
1717 async ( ) => {
1818 const checked_files = workspace_provider . get_all_checked_paths ( )
19+ const checked_files_timestamps : Record < string , number > = { }
20+
21+ for ( const file_path of checked_files ) {
22+ const timestamp = workspace_provider . get_selection_timestamp ( file_path )
23+ if ( timestamp !== undefined ) {
24+ checked_files_timestamps [ file_path ] = timestamp
25+ }
26+ }
27+
1928 const workspace_root_folders =
2029 vscode . workspace . workspaceFolders ?. map ( ( folder ) => folder . uri . fsPath ) ??
2130 [ ]
@@ -39,6 +48,7 @@ export const duplicate_workspace_command = (
3948 context . workspaceState . get < Record < string , string > > ( RANGES_STATE_KEY )
4049 const context_to_save : DuplicateWorkspaceContext = {
4150 checked_files,
51+ checked_files_timestamps,
4252 workspace_root_folders,
4353 timestamp : Date . now ( ) ,
4454 open_editors,
Original file line number Diff line number Diff line change @@ -140,6 +140,8 @@ export class WorkspaceProvider
140140 this . _ranges_watcher . onDidDelete ( ( ) => this . load_all_ranges ( ) )
141141
142142 this . ranges_initialization = this . load_all_ranges ( )
143+
144+ this . load_checked_files_state ( )
143145 }
144146
145147 private async _save_checked_files_state ( ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments