-
Notifications
You must be signed in to change notification settings - Fork 322
Fetch full documentation in code completion #2207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
a7medev
wants to merge
14
commits into
swiftlang:main
Choose a base branch
from
a7medev:feat/full-documentation-in-code-completion
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
8d42228
Fetch full documentation in completion items
a7medev 4533f61
Fix completion tests to assert on full documentation
a7medev 915e5d2
Test completion item resolve documentation falls back to brief doc if…
a7medev 2cffd1c
Make completion_item_get_doc_full_copy optional for backward compatib…
a7medev 04b6169
Use multiline string & turn var into let in handleCompletionDocumenta…
a7medev b3b01d7
Assert appropriate completion doc based on full doc support in source…
a7medev 8063774
Replace completion_item_get_doc_full_copy with completion_item_get_do…
a7medev bc76da3
Log errors on xmlDocumentationToMarkdown in documentationString
a7medev 3138800
Revert "Assert appropriate completion doc based on full doc support i…
a7medev 02da9fe
Skip tests relying on full documentation unless supported
a7medev c5a6b1c
Format changes with swift-format
a7medev 61b8194
Return both breif & full doc in codeCompleteDocumentation request
a7medev 0bcd943
Use raw documentation for full documentation in completion
a7medev a8d3679
Simplify return of SkipUnless.getSourceKitD
a7medev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn’t this case pass even if sourcekitd doesn’t support full documentation in completion? You didn’t actually change the behavior or am I missing something.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would pass since the brief documentation is equal to the full documentation in this test case but I don't think this is something we need to maintain since we can change the formatting for full/brief documentation or update the doc comment in the test for some reason which would in turn break the test if we didn't have full documentation support in sourcekitd.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see. Makes sense. Thanks for explaining. 👍🏽