Commit Graph

3 Commits

Author SHA1 Message Date
Hamish Knight
7dc0ec8ae9 [unittests] Fix a stack use-after-scope
We need to use a `std::function` here since it
escapes the lifetime of the call.

rdar://127362231
2024-05-01 20:16:26 +01:00
Hamish Knight
de9806e2fa [SourceKit] Introduce key for cancelling on close
Defaults to `true`.
2024-04-30 21:13:20 +01:00
Hamish Knight
69f2e26d35 [SourceKit] Cancel in-flight builds on editor.close
When closing a document, cancel any in-flight
builds happening for it.

rdar://127126348
2024-04-30 12:00:27 +01:00