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

+1
View File
@@ -163,6 +163,7 @@ class DistroInstaller {
static const String guestResolvConf = '# Generated by CodeEditor\n'
'nameserver 223.5.5.5\n'
'nameserver 119.29.29.29\n'
'nameserver 1.1.1.1\n'
'nameserver 114.114.114.114\n';
/// 自动化环境补丁与配置
+1 -1
View File
@@ -125,7 +125,7 @@ class FileService {
final ext = p.extension(path).toLowerCase();
if(_binaryExtensions.contains(ext)) {
throw const FileSystemException('此文件是二进制可执行文件或多媒体文件,不支持作为文本编辑');
throw FileSystemException('此文件是二进制可执行文件或多媒体文件,不支持作为文本编辑', path);
}
final length = await file.length();
+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);
}