This commit is contained in:
LZX committed 2026-09-13 20:22:34 +08:00
1 parent 55f35673df
commit 9fbb414ee6
29 files changed
+3480 -460

No files matched your search

+6 -2
View File
@@ -26,9 +26,13 @@ class ProjectHistoryService {
List<String>? resolvedOpenFiles = openFilePaths;
if(existingIndex != -1) {
resolvedFile ??= history[existingIndex].lastOpenedFilePath;
if (openFilePaths == null) {
resolvedFile ??= history[existingIndex].lastOpenedFilePath;
resolvedOpenFiles ??= history[existingIndex].openFilePaths;
} else if (openFilePaths.isEmpty) {
resolvedFile = null;
}
resolvedOpenDirs ??= history[existingIndex].openDirectoryPaths;
resolvedOpenFiles ??= history[existingIndex].openFilePaths;
history.removeAt(existingIndex);
}