-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[IDE] [Signature Help] Add basic signature help request to SourceKit #83378
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
[IDE] [Signature Help] Add basic signature help request to SourceKit #83378
Conversation
7c436a1 to
254f4e4
Compare
8543c6d to
21977fc
Compare
10cb4af to
aea823a
Compare
aea823a to
6b8b3c4
Compare
|
@hamishknight I've addressed your comments (half-addressed this one: #83378 (comment)), can you please recheck? 🙏🏼 |
|
@a7medev Can you rebase this PR to make it a bit easier to re-review now that the other PRs have landed? |
[IDE] Refactor signature help to use argument completion directly [IDE] Return signatures as out parameter of ArgumentTypeCheckCompletionCallback::getSignatures
…ntCompletion And update signature help to output the signature correctly for a second apply and add tests in signature_help_currying
6b8b3c4 to
aabab5b
Compare
|
@hamishknight Updated. ✅ |
hamishknight
left a comment
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.
Thank you! LGTM
Co-authored-by: Hamish Knight <[email protected]>
|
@hamishknight Can you please trigger CI? 🙏🏼 |
|
@swift-ci please smoke test |
|
@a7medev Looks like a couple of test failures on Windows: Do we really need to pass |
|
@hamishknight Fixed. I was mainly using it to prevent matching the extra newline at the end of the expected output but it wasn't necessary. |
|
Thanks! |
|
@swift-ci please smoke test |
rintaro
left a comment
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.
I am fine with merging this as-is.
But my preference is that tools/SourceKit should only be a facade of lib/IDE.
I.e. all the logic should be in IDE and the primary test should be swift-ide-test.
sourcekitd-test is for testing SourceKit request/response handling/formatting only.
|
@rintaro I agree and we've considered this but we descoped it for now to focus on getting the feature done first. I plan on moving this to |
|
Sounds good to me. Thanks for working on this! |
Depends on swiftlang/swift#83378 --- Adds support for the LSP signature help request. > [!NOTE] > As of swiftlang/swift#83378, SourceKitD still doesn't separate parameter documentation from the signature documentation and thus parameters don't have their own separate documentation. This should just work once SourceKitD implements this functionality and we'll only need to modify the tests.
Note
This PR depends on #83646, it should be its base PR but GitHub doesn't allow that.
Commits after 6ebbb12 are part of this PR.
Add a basic
signaturehelprequest to SourceKit that: