Skip to content

Commit 3a2107e

Browse files
authored
chore(typos): fix typos (#1121)
* chore(typos): fix typos * revert change
1 parent 3639226 commit 3a2107e

File tree

17 files changed

+55
-55
lines changed

17 files changed

+55
-55
lines changed

CodeEdit/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate, ObservableObject {
178178

179179
/// Tries to focus a window with specified view content type.
180180
/// - Parameter type: The type of viewContent which hosted in a window to be focused.
181-
/// - Returns: `true` if window exist and focused, oterwise - `false`
181+
/// - Returns: `true` if window exist and focused, otherwise - `false`
182182
private func tryFocusWindow<T: View>(of type: T.Type) -> Bool {
183183
guard let window = NSApp.windows.filter({ ($0.contentView as? NSHostingView<T>) != nil }).first
184184
else { return false }

CodeEdit/Features/AppPreferences/Model/Source Control/SourceControlPreferences.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ extension AppPreferences {
2727
struct SourceControlGeneral: Codable {
2828
/// Indicates whether or not the source control is active
2929
var enableSourceControl: Bool = true
30-
/// Indicates whether or not we should include the upsteam changes
31-
var refreshStatusLocaly: Bool = false
32-
/// Indicates whether or not we should include the upsteam changes
30+
/// Indicates whether or not we should include the upstream changes
31+
var refreshStatusLocally: Bool = false
32+
/// Indicates whether or not we should include the upstream changes
3333
var fetchRefreshServerStatus: Bool = false
34-
/// Indicates whether or not we should include the upsteam changes
34+
/// Indicates whether or not we should include the upstream changes
3535
var addRemoveAutomatically: Bool = false
36-
/// Indicates whether or not we should include the upsteam changes
36+
/// Indicates whether or not we should include the upstream changes
3737
var selectFilesToCommit: Bool = false
3838
/// Indicates whether or not to show the source control changes
3939
var showSourceControlChanges: Bool = true
40-
/// Indicates whether or not we should include the upsteam
40+
/// Indicates whether or not we should include the upstream
4141
var includeUpstreamChanges: Bool = false
4242
/// Indicates whether or not we should open the reported feedback in the browser
4343
var openFeedbackInBrowser: Bool = true
@@ -53,7 +53,7 @@ extension AppPreferences {
5353
init(from decoder: Decoder) throws {
5454
let container = try decoder.container(keyedBy: CodingKeys.self)
5555
self.enableSourceControl = try container.decodeIfPresent(Bool.self, forKey: .enableSourceControl) ?? true
56-
self.refreshStatusLocaly = try container.decodeIfPresent(Bool.self, forKey: .refreshStatusLocaly) ?? true
56+
self.refreshStatusLocally = try container.decodeIfPresent(Bool.self, forKey: .refreshStatusLocally) ?? true
5757
self.fetchRefreshServerStatus = try container.decodeIfPresent(
5858
Bool.self,
5959
forKey: .fetchRefreshServerStatus
@@ -108,7 +108,7 @@ extension AppPreferences {
108108
var authorName: String = ""
109109
/// The author email
110110
var authorEmail: String = ""
111-
/// Indicates what files should be ignored when commiting
111+
/// Indicates what files should be ignored when committing
112112
var ignoredFiles: [IgnoredFiles] = []
113113
/// Indicates whether we should rebase when pulling commits
114114
var preferRebaseWhenPulling: Bool = false

CodeEdit/Features/AppPreferences/Sections/SourceControlPreferences/SourceControlGeneralView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct SourceControlGeneralView: View {
2929
VStack(alignment: .leading) {
3030
Toggle(
3131
"Refresh local status automatically",
32-
isOn: $prefs.preferences.sourceControl.general.refreshStatusLocaly
32+
isOn: $prefs.preferences.sourceControl.general.refreshStatusLocally
3333
)
3434
.toggleStyle(.checkbox)
3535
Toggle(

CodeEdit/Features/CodeEditExtension/ExtensionManager.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ final class ExtensionManager {
1616
var instance: ExtensionInterface
1717
}
1818

19-
/// Shared instance of `ExtenstionManager`
19+
/// Shared instance of `ExtensionManager`
2020
static let shared: ExtensionManager = .init()
2121

2222
private var loadedBundles: [Bundle] = []
23-
private var loadedExtentions: [String: Extension] = [:]
23+
private var loadedExtensions: [String: Extension] = [:]
2424

2525
private let codeeditFolder: URL
2626
private let extensionsFolder: URL
@@ -92,7 +92,7 @@ final class ExtensionManager {
9292
return manifest
9393
}
9494
} catch {
95-
print("An error occured trying to parse the manifest file for: \(bundle.bundlePath)")
95+
print("An error occurred trying to parse the manifest file for: \(bundle.bundlePath)")
9696
print(error)
9797
}
9898
return nil
@@ -128,7 +128,7 @@ final class ExtensionManager {
128128
}
129129

130130
// TODO: Reimplement this with XPC
131-
/// Triggers the build function of the extension and thereby activates the extesion
131+
/// Triggers the build function of the extension and thereby activates the extension
132132
///
133133
private func load(_ bundle: Bundle, _ apiBuilder: (String) -> ExtensionAPI) {
134134
for bundle in loadedBundles {
@@ -140,7 +140,7 @@ final class ExtensionManager {
140140
let extInstance = builder.init().build(withAPI: api)
141141
print("Activated extension: \(manifest.name)")
142142

143-
loadedExtentions[bundleIdentifier] = Extension(
143+
loadedExtensions[bundleIdentifier] = Extension(
144144
bundle: bundle,
145145
manifest: manifest,
146146
instance: extInstance

CodeEdit/Features/Feedback/Model/FeedbackModel.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public class FeedbackModel: ObservableObject {
7474
}
7575

7676
/// This is just temporary till we have bot that will handle this
77-
private func getFeebackTypeTitle() -> String {
77+
private func getFeedbackTypeTitle() -> String {
7878
switch feedbackTypeListSelection {
7979
case "behaviour":
8080
return "🐞"
@@ -93,7 +93,7 @@ public class FeedbackModel: ObservableObject {
9393

9494
/// Gets the ID of the selected feedback type and then
9595
/// cross references it to select the right Label based on the type
96-
private func getFeebackTypeLabel() -> String {
96+
private func getFeedbackTypeLabel() -> String {
9797
switch feedbackTypeListSelection {
9898
case "behaviour":
9999
return "Bug"
@@ -152,15 +152,15 @@ public class FeedbackModel: ObservableObject {
152152
GitHubAccount(config).postIssue(
153153
owner: "CodeEditApp",
154154
repository: "CodeEdit",
155-
title: "\(getFeebackTypeTitle()) \(title)",
155+
title: "\(getFeedbackTypeTitle()) \(title)",
156156
body: createIssueBody(
157157
description: description,
158158
steps: steps,
159159
expectation: expectation,
160160
actuallyHappened: actuallyHappened
161161
),
162162
assignee: "",
163-
labels: [getFeebackTypeLabel(), getIssueLabel()]
163+
labels: [getFeedbackTypeLabel(), getIssueLabel()]
164164
) { response in
165165
switch response {
166166
case .success(let issue):

CodeEdit/Features/Git/Accounts/GitHub/Model/GitHubGist.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ extension GitHubAccount {
157157
- parameter description: The description of the gist.
158158
- parameter filename: The name of the file in the gist.
159159
- parameter fileContent: The content of the file in the gist.
160-
- parameter publicAccess: The public/private visability of the gist.
160+
- parameter publicAccess: The public/private visibility of the gist.
161161
- parameter completion: Callback for the gist that is created.
162162
*/
163163
@discardableResult

CodeEdit/Features/Git/Accounts/GitLab/Model/GitLabEventNote.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class GitLabEventNote: Codable {
1616
var system: Bool?
1717
var upvote: Bool?
1818
var downvote: Bool?
19-
var noteableID: Int?
20-
var noteableType: String?
19+
var notableID: Int?
20+
var notableType: String?
2121

2222
init(_ json: [String: AnyObject]) {
2323
id = json["id"] as? Int
@@ -28,7 +28,7 @@ class GitLabEventNote: Codable {
2828
system = json["system"] as? Bool
2929
upvote = json["upvote"] as? Bool
3030
downvote = json["downvote"] as? Bool
31-
noteableID = json["noteable_id"] as? Int
32-
noteableType = json["noteable_type"] as? String
31+
notableID = json["notable_id"] as? Int
32+
notableType = json["notable_type"] as? String
3333
}
3434
}

CodeEdit/Features/Git/Accounts/GitLab/Model/GitLabProject.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class GitLabProject: Codable {
2525
var webURL: URL?
2626
var path: String?
2727
var pathWithNamespace: String?
28-
var containerRegisteryEnabled: Bool?
28+
var containerRegistryEnabled: Bool?
2929
var defaultBranch: String?
3030
var tagList: [String]?
3131
var isArchived: Bool?
@@ -63,7 +63,7 @@ class GitLabProject: Codable {
6363
case webURL = "web_url"
6464
case path
6565
case pathWithNamespace = "path_with_namespace"
66-
case containerRegisteryEnabled = "container_registry_enabled"
66+
case containerRegistryEnabled = "container_registry_enabled"
6767
case defaultBranch = "default_branch"
6868
case tagList = "tag_list"
6969
case isArchived = "archived"

CodeEdit/Features/Git/Client/GitClient.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ struct GitClient {
170170
message: parameters[safe: 2] ?? "",
171171
author: parameters[safe: 3] ?? "",
172172
authorEmail: parameters[safe: 4] ?? "",
173-
commiter: parameters[safe: 5] ?? "",
174-
commiterEmail: parameters[safe: 6] ?? "",
173+
committer: parameters[safe: 5] ?? "",
174+
committerEmail: parameters[safe: 6] ?? "",
175175
remoteURL: remoteURL,
176176
date: dateFormatter.date(from: parameters[safe: 7] ?? "") ?? Date()
177177
)

CodeEdit/Features/Git/Client/Models/GitCommit.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ struct GitCommit: Equatable, Hashable, Identifiable {
1515
let message: String
1616
let author: String
1717
let authorEmail: String
18-
let commiter: String
19-
let commiterEmail: String
18+
let committer: String
19+
let committerEmail: String
2020
let remoteURL: URL?
2121
let date: Date
2222

0 commit comments

Comments
 (0)