Skip to content

Commit 6d342a2

Browse files
committed
Fixed SwiftLint errors
1 parent 7092ab5 commit 6d342a2

4 files changed

Lines changed: 3 additions & 17 deletions

File tree

CodeEdit/AppDelegate.swift

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate, ObservableObject {
2727
NSApp.closeWindow(.welcome, .about)
2828

2929
// Add test notification
30-
DispatchQueue.main.asyncAfter(deadline: .now() + 2.0) {
30+
DispatchQueue.main.asyncAfter(deadline: .now() + 5.0) {
3131
NotificationManager.shared.post(
3232
iconText: "👋",
3333
iconTextColor: .white,
@@ -132,19 +132,6 @@ final class AppDelegate: NSObject, NSApplicationDelegate, ObservableObject {
132132
cursorPositions: [CursorPosition(line: line, column: column > 0 ? column : 1)]
133133
)
134134
}
135-
// Add notification when workspace is opened via URL
136-
if let workspaceDoc = document as? WorkspaceDocument {
137-
NotificationManager.shared.post(
138-
iconSymbol: "folder.badge.plus",
139-
title: "Workspace Opened",
140-
description: "Successfully opened workspace: \(workspaceDoc.fileURL?.lastPathComponent ?? "")",
141-
actionButtonTitle: "View Files",
142-
action: {
143-
// Ensure the workspace window is frontmost
144-
workspaceDoc.windowControllers.first?.window?.makeKeyAndOrderFront(nil)
145-
}
146-
)
147-
}
148135
}
149136
}
150137
}

CodeEdit/Features/Documents/Views/WindowContentView.swift

Lines changed: 0 additions & 1 deletion
This file was deleted.

CodeEdit/Features/InspectorSidebar/Views/FileInspector.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ struct FileInspector: View {
1010
}
1111
.listStyle(.inset)
1212
}
13-
}
13+
}

CodeEdit/Features/Notifications/Views/NotificationBannerEnvironment.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ extension EnvironmentValues {
2020
get { self[IsOverlayKey.self] }
2121
set { self[IsOverlayKey.self] = newValue }
2222
}
23-
23+
2424
var isSingleListItem: Bool {
2525
get { self[IsSingleListItemKey.self] }
2626
set { self[IsSingleListItemKey.self] = newValue }

0 commit comments

Comments
 (0)