File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,13 +81,15 @@ export const readVSCodeBasedIDEState = (): VSWindowModel[] => {
8181 // console.log('IDE state:', jsonData);
8282
8383 if ( jsonData . entries ) {
84- // Include fileUri entries now for file history support
85- // and limit to 100
86- jsonData . entries = jsonData . entries
87- . filter ( ( entry : VSCodeBasedEntry ) => {
88- return entry . folderUri || entry . workspace || entry . fileUri ;
89- } )
84+ // Separate folders/workspaces and files to ensure file items
85+ // are always included regardless of how many folders exist
86+ const foldersAndWorkspaces = jsonData . entries
87+ . filter ( ( entry : VSCodeBasedEntry ) => entry . folderUri || entry . workspace )
9088 . slice ( 0 , 100 ) ;
89+ const files = jsonData . entries
90+ . filter ( ( entry : VSCodeBasedEntry ) => entry . fileUri )
91+ . slice ( 0 , 50 ) ;
92+ jsonData . entries = [ ...foldersAndWorkspaces , ...files ] ;
9193 }
9294
9395 const resp = convertVSCodeBasedSqliteToVSWindowModelArray ( jsonData ) ;
You can’t perform that action at this time.
0 commit comments