mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] Make SwiftASTConsumer::failed pure virtual
Previously, if a semantic tokens request or diagnostic request failed, we wouldn’t return any response.
This commit is contained in:
@@ -2633,6 +2633,11 @@ void SwiftLangSupport::getSemanticTokens(
|
||||
void cancelled() override {
|
||||
Receiver(RequestResult<SemanticTokensResult>::cancelled());
|
||||
}
|
||||
|
||||
void failed(StringRef Error) override {
|
||||
LOG_WARN_FUNC("semantic tokens failed: " << Error);
|
||||
Receiver(RequestResult<SemanticTokensResult>::fromError(Error));
|
||||
}
|
||||
};
|
||||
|
||||
auto Consumer = std::make_shared<SemanticTokensConsumer>(InputBufferName,
|
||||
|
||||
Reference in New Issue
Block a user