[SourceKit] Add the raw doc comment to the cursor info response

SourceKit-LSP currently parses the XML comment to generate Markdown again but round-tripping a (probably markdown) doc comment to XML to Markdown is lossy in many cases and unnecessary work. Include the comment as it is spelled in source in the cursor info response so that sourcekit-lsp can display it.

Part of rdar://120685874
This commit is contained in:
Alex Hoppen
2024-02-23 17:44:37 -08:00
parent a2a208379d
commit 873ed19786
21 changed files with 133 additions and 22 deletions

View File

@@ -35,6 +35,7 @@ UID_KEYS = [
KEY('GenericParams', 'key.generic_params'),
KEY('GenericRequirements', 'key.generic_requirements'),
KEY('DocFullAsXML', 'key.doc.full_as_xml'),
KEY('DocComment', 'key.doc_comment'),
KEY('Line', 'key.line'),
KEY('Column', 'key.column'),
KEY('ReceiverUSR', 'key.receiver_usr'),