1
This commit is contained in:
1 parent
55f35673df
commit
9fbb414ee6
29 files changed
+3480
-460
No files matched your search
@@ -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';
|
||||
|
||||
/// 自动化环境补丁与配置
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user