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 @@ -1764,7 +1764,7 @@ extension SourceKitLSPServer {
1764
1764
// `SwiftLanguageService` will always respond with `unsupported method`. Thus, only log such a failure instead of
1765
1765
// returning it to the client.
1766
1766
if indexBasedResponse. isEmpty {
1767
- return await orLog ( " Fallback definition request " ) {
1767
+ return await orLog ( " Fallback definition request " , level : . info ) {
1768
1768
return try await languageService. definition ( req)
1769
1769
}
1770
1770
}
Original file line number Diff line number Diff line change @@ -178,6 +178,11 @@ actor SyntacticTestIndex {
178
178
guard !removedFiles. contains ( uri) else {
179
179
return
180
180
}
181
+ guard FileManager . default. fileExists ( atPath: url. path) else {
182
+ // File no longer exists. Probably deleted since we scheduled it for indexing. Nothing to worry about.
183
+ logger. info ( " Not indexing \( uri. forLogging) for tests because it does not exist " )
184
+ return
185
+ }
181
186
guard
182
187
let fileModificationDate = try ? FileManager . default. attributesOfItem ( atPath: url. path) [ . modificationDate]
183
188
as? Date
You can’t perform that action at this time.
0 commit comments