Skip to content

Commit 9b524bd

Browse files
committed
Fixed SwiftLint errors
1 parent 6988330 commit 9b524bd

File tree

5 files changed

+7
-21
lines changed

5 files changed

+7
-21
lines changed

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/NotificationManager.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ final class NotificationManager: NSObject, ObservableObject {
104104

105105
DispatchQueue.main.async { [weak self] in
106106
self?.notifications.append(notification)
107-
107+
108108
if self?.isAppActive == true {
109109
self?.showTemporaryNotification(notification)
110110
} else {
@@ -182,7 +182,7 @@ final class NotificationManager: NSObject, ObservableObject {
182182

183183
DispatchQueue.main.async { [weak self] in
184184
self?.notifications.append(notification)
185-
185+
186186
if self?.isAppActive == true {
187187
self?.showTemporaryNotification(notification)
188188
} else {
@@ -197,13 +197,13 @@ final class NotificationManager: NSObject, ObservableObject {
197197
content.title = notification.title
198198
content.body = notification.description
199199
content.userInfo = ["id": notification.id.uuidString]
200-
200+
201201
let request = UNNotificationRequest(
202202
identifier: notification.id.uuidString,
203203
content: content,
204204
trigger: nil
205205
)
206-
206+
207207
UNUserNotificationCenter.current().add(request)
208208
}
209209

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)