@@ -149,7 +149,7 @@ extension BuildSystemManager {
149
149
/// Get the build settings for the given document, assuming it has the given
150
150
/// language.
151
151
///
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
153
153
/// no fallback build settings can be computed.
154
154
///
155
155
/// `isFallback` is `true` if the build settings couldn't be computed and
@@ -172,7 +172,7 @@ extension BuildSystemManager {
172
172
log ( " Getting build settings failed: \( error) " )
173
173
}
174
174
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,
176
176
// we will never get real build settings. Consider the build settings
177
177
// non-fallback.
178
178
return ( buildSettings: settings, isFallback: buildSystem != nil )
@@ -270,7 +270,7 @@ extension BuildSystemManager {
270
270
}
271
271
272
272
/// *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`.
274
274
func updateAndNotifyStatuses( changes: [ DocumentURI : MainFileStatus ] ) {
275
275
var changedWatchedFiles = [ DocumentURI: FileBuildSettingsChange] ( )
276
276
for (mainFile, status) in changes {
@@ -314,7 +314,7 @@ extension BuildSystemManager {
314
314
_ fallback: FallbackBuildSystem
315
315
) {
316
316
// 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.
318
318
guard let status = self . mainFileStatuses [ mainFile] , status == . waiting else {
319
319
return
320
320
}
@@ -371,7 +371,7 @@ extension BuildSystemManager: BuildSystemDelegate {
371
371
newStatus = settingsChange. isFallback ? . fallback( newSettings) : . primary( newSettings)
372
372
} else if let fallback = self . fallbackBuildSystem {
373
373
// 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?
375
375
let language = firstWatch. value. language
376
376
if let settings = fallback. buildSettings ( for: mainFile, language: language) {
377
377
newStatus = . fallback( settings)
0 commit comments