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 {
1778
1778
// `SwiftLanguageService` will always respond with `unsupported method`. Thus, only log such a failure instead of
1779
1779
// returning it to the client.
1780
1780
if indexBasedResponse. isEmpty {
1781
- return await orLog ( " Fallback definition request " ) {
1781
+ return await orLog ( " Fallback definition request " , level : . info ) {
1782
1782
return try await languageService. definition ( req)
1783
1783
}
1784
1784
}
Original file line number Diff line number Diff line change @@ -179,6 +179,11 @@ actor SyntacticTestIndex {
179
179
guard !removedFiles. contains ( uri) else {
180
180
return
181
181
}
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
+ }
182
187
guard
183
188
let fileModificationDate = try ? FileManager . default. attributesOfItem ( atPath: url. path) [ . modificationDate]
184
189
as? Date
You can’t perform that action at this time.
0 commit comments