[SourceKit] Introduce key for cancelling on close

Defaults to `true`.
This commit is contained in:
Hamish Knight
2024-04-30 12:00:27 +01:00
parent 69f2e26d35
commit de9806e2fa
7 changed files with 31 additions and 24 deletions

View File

@@ -615,7 +615,8 @@ public:
SourceKitCancellationToken CancellationToken,
std::shared_ptr<EditorConsumer> Consumer) override;
void editorClose(StringRef Name, bool RemoveCache) override;
void editorClose(StringRef Name, bool CancelBuilds,
bool RemoveCache) override;
void editorReplaceText(StringRef Name, llvm::MemoryBuffer *Buf,
unsigned Offset, unsigned Length,