[SourceKit] Add a request kind to notify dependencies are updated

This commit is contained in:
Rintaro Ishizaki
2021-02-04 15:49:25 -08:00
parent bcd6416c89
commit 27dc2cf406
11 changed files with 107 additions and 2 deletions

View File

@@ -303,6 +303,10 @@ void SwiftLangSupport::globalConfigurationUpdated(
configureCompletionInstance(CompletionInst, Config);
}
void SwiftLangSupport::dependencyUpdated() {
CompletionInst->markCachedCompilerInstanceShouldBeInvalidated();
}
UIdent SwiftLangSupport::getUIDForDecl(const Decl *D, bool IsRef) {
return UIdentVisitor(IsRef).visit(const_cast<Decl*>(D));
}