Skip to content

Commit 66a2748

Browse files
committed
Fix typos
1 parent cc5a83b commit 66a2748

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Sources/SKCore/BuildSystemManager.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ extension BuildSystemManager {
149149
/// Get the build settings for the given document, assuming it has the given
150150
/// language.
151151
///
152-
/// Returns `nil` if no build settings are availabe in the build system and
152+
/// Returns `nil` if no build settings are available in the build system and
153153
/// no fallback build settings can be computed.
154154
///
155155
/// `isFallback` is `true` if the build settings couldn't be computed and
@@ -172,7 +172,7 @@ extension BuildSystemManager {
172172
log("Getting build settings failed: \(error)")
173173
}
174174
if let settings = fallbackBuildSystem?.buildSettings(for: document, language: language) {
175-
// If there is no build system and we onlyl have the fallback build system,
175+
// If there is no build system and we only have the fallback build system,
176176
// we will never get real build settings. Consider the build settings
177177
// non-fallback.
178178
return (buildSettings: settings, isFallback: buildSystem != nil)
@@ -270,7 +270,7 @@ extension BuildSystemManager {
270270
}
271271

272272
/// *Must be called on queue*. Update and notify our delegate for the given
273-
/// main file changes if they are convertable into `FileBuildSettingsChange`.
273+
/// main file changes if they are convertible into `FileBuildSettingsChange`.
274274
func updateAndNotifyStatuses(changes: [DocumentURI: MainFileStatus]) {
275275
var changedWatchedFiles = [DocumentURI: FileBuildSettingsChange]()
276276
for (mainFile, status) in changes {
@@ -314,7 +314,7 @@ extension BuildSystemManager {
314314
_ fallback: FallbackBuildSystem
315315
) {
316316
// There won't be a current status if it's unreferenced by any watched file.
317-
// Simiarly, if the status isn't `waiting` then there's nothing to do.
317+
// Similarly, if the status isn't `waiting` then there's nothing to do.
318318
guard let status = self.mainFileStatuses[mainFile], status == .waiting else {
319319
return
320320
}
@@ -371,7 +371,7 @@ extension BuildSystemManager: BuildSystemDelegate {
371371
newStatus = settingsChange.isFallback ? .fallback(newSettings) : .primary(newSettings)
372372
} else if let fallback = self.fallbackBuildSystem {
373373
// FIXME: we need to stop threading the language everywhere, or we need the build system
374-
// itself to pass it in here. Or alteratively cache the fallback settings/language earlier?
374+
// itself to pass it in here. Or alternatively cache the fallback settings/language earlier?
375375
let language = firstWatch.value.language
376376
if let settings = fallback.buildSettings(for: mainFile, language: language) {
377377
newStatus = .fallback(settings)

Sources/SourceKitLSP/SourceKitServer.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ final actor WorkDoneProgressState {
5959
private enum State {
6060
/// No `WorkDoneProgress` has been created.
6161
case noProgress
62-
/// We have sent the request to create a `WorkDoneProgress` but haven’t received a respose yet.
62+
/// We have sent the request to create a `WorkDoneProgress` but haven’t received a response yet.
6363
case creating
6464
/// A `WorkDoneProgress` has been created.
6565
case created
@@ -481,10 +481,10 @@ public actor SourceKitServer {
481481
log("Using toolchain \(toolchain.displayName) (\(toolchain.identifier)) for \(uri)")
482482

483483
if let concurrentlySetService = workspace.documentService[uri] {
484-
// Since we await the consutrction of `service`, another call to this
484+
// Since we await the construction of `service`, another call to this
485485
// function might have happened and raced us, setting
486486
// `workspace.documentServices[uri]`. If this is the case, return the
487-
// exising value and discard the service that we just retrieved.
487+
// existing value and discard the service that we just retrieved.
488488
return concurrentlySetService
489489
}
490490
workspace.documentService[uri] = service
@@ -708,7 +708,7 @@ extension SourceKitServer: BuildSystemDelegate {
708708

709709
// Catch up on any queued notifications and requests.
710710
while !(documentToPendingQueue[uri]?.queue.isEmpty ?? true) {
711-
// We need to run this loop until converence since new closures can
711+
// We need to run this loop until convergence since new closures can
712712
// get added to `documentToPendingQueue` while we are awaiting the
713713
// result of a `task.operation()`.
714714
let pendingQueue = documentToPendingQueue[uri]?.queue ?? []

0 commit comments

Comments
 (0)