Skip to content

Commit c6a8f8c

Browse files
FastestMolassesmatthijseikelenboomthecoolwinter
authored
Clean Up Code (#1737)
* Cleaning up code * Removed unnecessary line * Update SettingsView.swift * Update Package.resolved * Remove commented line * Optimize .map * Naming fixes * Move Acknowledgements and Contributors folder under the About folder * Fix comment * Updated fileManager variable to a normal variable instead of a computed one * Rearranged files in the Git folder * Fix All Warnings, Use Non-Optional String * Revert One String Decode * Upgrade Introspect Dependency, Remove Final Warnings * Fix Introspect Error * Reordered some files in the Editor feature folder * Removed extensions folder in CEWorkspace feature folder * Longer Autosave Debounce --------- Co-authored-by: Matthijs Eikelenboom <matthijs697@live.nl> Co-authored-by: Khan Winter <35942988+thecoolwinter@users.noreply.github.com>
1 parent 7513e1b commit c6a8f8c

File tree

53 files changed

+164
-213
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+164
-213
lines changed

β€Ž.swiftlint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ identifier_name:
1515
# paths to ignore during linting.
1616
excluded:
1717
- CodeEditModules/.build # Where Swift Package Manager checks out dependency sources
18-
- DerivedData
18+
- DerivedData
1919

2020
opt_in_rules:
2121
- attributes

β€ŽCodeEdit.xcodeproj/project.pbxproj

Lines changed: 91 additions & 96 deletions
Large diffs are not rendered by default.

β€ŽCodeEdit.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€ŽCodeEdit.xcodeproj/xcshareddata/xcschemes/CodeEdit.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1430"
3+
LastUpgradeVersion = "1540"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

β€ŽCodeEdit/AppDelegate.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate, ObservableObject {
117117

118118
func applicationShouldTerminate(_ sender: NSApplication) -> NSApplication.TerminateReply {
119119
let projects: [String] = CodeEditDocumentController.shared.documents
120-
.map { doc in
121-
(doc as? WorkspaceDocument)?.fileURL?.path
122-
}
123-
.filter { $0 != nil }
124-
.map { $0! }
120+
.compactMap { ($0 as? WorkspaceDocument)?.fileURL?.path }
125121

126122
UserDefaults.standard.set(projects, forKey: AppDelegate.recoverWorkspacesKey)
127123

β€ŽCodeEdit/CodeEditApp.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ struct CodeEditApp: App {
1212
@NSApplicationDelegateAdaptor var appdelegate: AppDelegate
1313
@ObservedObject var settings = Settings.shared
1414

15-
@Environment(\.openWindow)
16-
var openWindow
17-
1815
let updater: SoftwareUpdater = SoftwareUpdater()
1916

2017
init() {

0 commit comments

Comments
Β (0)