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:
@@ -270,12 +270,13 @@ SwiftLangSupport::SwiftLangSupport(SourceKit::Context &SKCtx)
|
||||
llvm::SmallString<128> LibPath(SKCtx.getRuntimeLibPath());
|
||||
llvm::sys::path::append(LibPath, "swift");
|
||||
RuntimeResourcePath = std::string(LibPath.str());
|
||||
DiagnosticDocumentationPath = SKCtx.getDiagnosticDocumentationPath();
|
||||
|
||||
Stats = std::make_shared<SwiftStatistics>();
|
||||
EditorDocuments = std::make_shared<SwiftEditorDocumentFileMap>();
|
||||
ASTMgr = std::make_shared<SwiftASTManager>(EditorDocuments,
|
||||
SKCtx.getGlobalConfiguration(),
|
||||
Stats, RuntimeResourcePath);
|
||||
ASTMgr = std::make_shared<SwiftASTManager>(
|
||||
EditorDocuments, SKCtx.getGlobalConfiguration(), Stats,
|
||||
RuntimeResourcePath, DiagnosticDocumentationPath);
|
||||
|
||||
CompletionInst = std::make_shared<CompletionInstance>();
|
||||
configureCompletionInstance(CompletionInst, SKCtx.getGlobalConfiguration());
|
||||
|
||||
Reference in New Issue
Block a user