-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Support LSP Function parameter completion #7518
Conversation
c330876
to
0e66ae1
Compare
This looks pretty good. I'll have to double-check it against the LSP spec, but your screencast is compelling evidence that it works. I think I'll wait to review until (1) #7500 has landed (since it looks like you'll have to solve merge conflicts) and (2) you've added tests (which I assume you're waiting on #7500 for). |
99040c6
to
60b1a8a
Compare
the CI failure seems unrelated?
|
The real error is higher up:
The blame appears to be 3c80858, so yeah, unrelated. |
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.
Overall this looks pretty good to me. Unfortunately, when I was reading the spec I noticed that insertText
is deprecated. It suggested using textEdit
instead, although I'm not sure how you would get the desired tab-stop behavior using that interface.
What do you think about this? Should we respect the deprecation and try to find an alternative? Is there even a viable alternative?
e4d155b
to
623590d
Compare
@nmote I've updated this PR to avoid the deprecated API. It was a little more work but I think this makes sense. |
I have a few comments:
|
623590d
to
b382c40
Compare
Good catch. Updated.
The spec seems to say insertTextFormat applies to
We use the snippet format with
I have tested this iteration manually in VSCode, as well. One more thing, I just realized, we should check for |
b382c40
to
f543411
Compare
This looks good, thanks. The manual position manipulation makes me a little bit nervous, so I'm going to take a closer look at that in a bit. First though, I'll import it and spend some time playing around with it to make sure it behaves the way I expect. Unfortunately we're having some technical difficulties, and I can't import PRs right now. Hopefully that will be resolved soon, and I'll be able to move forward. |
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.
@nmote has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
The |
69cb0bf
to
9fe7c5d
Compare
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.
@nmote has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
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.
This looks awesome! One inline question about the test
9fe7c5d
to
166e49d
Compare
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.
@nmote has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Before
After