mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #31521 from owenv/sourcekit-find-edu-notes
[SourceKit] Discover diagnostic documentation relative to sourcekitd
This commit is contained in:
@@ -36,12 +36,16 @@ unsigned GlobalConfig::getCompletionCheckDependencyInterval() const {
|
||||
return State.CompletionCheckDependencyInterval;
|
||||
}
|
||||
|
||||
SourceKit::Context::Context(StringRef RuntimeLibPath,
|
||||
SourceKit::Context::Context(
|
||||
StringRef RuntimeLibPath, StringRef DiagnosticDocumentationPath,
|
||||
llvm::function_ref<std::unique_ptr<LangSupport>(Context &)>
|
||||
LangSupportFactoryFn,
|
||||
bool shouldDispatchNotificationsOnMain) : RuntimeLibPath(RuntimeLibPath),
|
||||
NotificationCtr(new NotificationCenter(shouldDispatchNotificationsOnMain)),
|
||||
Config(new GlobalConfig()) {
|
||||
LangSupportFactoryFn,
|
||||
bool shouldDispatchNotificationsOnMain)
|
||||
: RuntimeLibPath(RuntimeLibPath),
|
||||
DiagnosticDocumentationPath(DiagnosticDocumentationPath),
|
||||
NotificationCtr(
|
||||
new NotificationCenter(shouldDispatchNotificationsOnMain)),
|
||||
Config(new GlobalConfig()) {
|
||||
// Should be called last after everything is initialized.
|
||||
SwiftLang = LangSupportFactoryFn(*this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user