mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Diagnostics][SourceKit] Expose diagnostic educational notes through SourceKit requests
This commit is contained in:
@@ -110,6 +110,9 @@ void EditorDiagConsumer::handleDiagnostic(SourceManager &SM,
|
||||
}
|
||||
SKInfo.Description = Text.str();
|
||||
|
||||
for (auto notePath : Info.EducationalNotePaths)
|
||||
SKInfo.EducationalNotePaths.push_back(notePath);
|
||||
|
||||
Optional<unsigned> BufferIDOpt;
|
||||
if (Info.Loc.isValid()) {
|
||||
BufferIDOpt = SM.findBufferContainingLoc(Info.Loc);
|
||||
|
||||
Reference in New Issue
Block a user