Skip to content

Commit d87ae91

Browse files
committed
Docs, Remove Unnecessary Change
1 parent d4f0c1b commit d87ae91

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CodeEdit/Features/CEWorkspace/Models/CEWorkspaceFileManager+FileManagement.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ extension CEWorkspaceFileManager {
5858
/// - Authors: Mattijs Eikelenboom, KaiTheRedNinja. *Moved from 7c27b1e*
5959
/// - Throws: Throws a `CocoaError.fileWriteUnknown` with the file url if creating the file fails, and calls
6060
/// ``rebuildFiles(fromItem:deep:)`` which throws other `FileManager` errors.
61-
/// - Returns: The ``CEWorkspaceFile`` representing the new file in the file manager's cache.
61+
/// - Returns: The ``CEWorkspaceFile`` representing the new file in the file manager's cache.
6262
func addFile(
6363
fileName: String,
6464
toFile file: CEWorkspaceFile,
@@ -200,7 +200,10 @@ extension CEWorkspaceFileManager {
200200
}
201201
}
202202
}
203-
203+
204+
/// Delete a file from the file system.
205+
/// - Note: Use ``trash(file:)`` if the file should be moved to the trash. This is irreversible.
206+
/// - Parameter url: The file URL to delete.
204207
private func deleteFile(at url: URL) throws {
205208
do {
206209
guard fileManager.fileExists(atPath: url.path) else {

CodeEdit/Features/CEWorkspace/Models/CEWorkspaceFileManager.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ final class CEWorkspaceFileManager {
8080

8181
Task {
8282
try await self.sourceControlManager?.validate()
83-
await sourceControlManager?.refreshAllChangedFiles()
8483
}
8584
}
8685

0 commit comments

Comments
 (0)