File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1778,7 +1778,7 @@ extension SourceKitLSPServer {
17781778 // `SwiftLanguageService` will always respond with `unsupported method`. Thus, only log such a failure instead of
17791779 // returning it to the client.
17801780 if indexBasedResponse. isEmpty {
1781- return await orLog ( " Fallback definition request " ) {
1781+ return await orLog ( " Fallback definition request " , level : . info ) {
17821782 return try await languageService. definition ( req)
17831783 }
17841784 }
Original file line number Diff line number Diff line change @@ -179,6 +179,11 @@ actor SyntacticTestIndex {
179179 guard !removedFiles. contains ( uri) else {
180180 return
181181 }
182+ guard FileManager . default. fileExists ( atPath: url. path) else {
183+ // File no longer exists. Probably deleted since we scheduled it for indexing. Nothing to worry about.
184+ logger. info ( " Not indexing \( uri. forLogging) for tests because it does not exist " )
185+ return
186+ }
182187 guard
183188 let fileModificationDate = try ? FileManager . default. attributesOfItem ( atPath: url. path) [ . modificationDate]
184189 as? Date
You can’t perform that action at this time.
0 commit comments