Skip to content
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

Add in the parentUri when offering the newSymbol code action. #2734

Merged
merged 1 commit into from Apr 22, 2021

Conversation

ckipp01
Copy link
Member

@ckipp01 ckipp01 commented Apr 22, 2021

Most clients don't have an issue with this, but I just hit on a case
where the server providing null here is causing issues when the client
then tries to encode the value to send back and it chokes on it. In this
specific case, we do this step later if it's passed in as null, but
since we already have what we need to fill in the parentUri where the
new file will be created, we just do that right away instead of passing
in null.

Most clients don't have an issue with this, but I just hit on a case
where the server providing `null` here is causing issues when the client
then tries to encode the value to send back and it chokes on it. In this
specific case, we do this step later if it's passed in as null, but
since we already have what we need to fill in the parentUri where the
new file will be created, we just do that right away instead of passing
in `null`.
@ckipp01 ckipp01 requested a review from tgodzik April 22, 2021 18:29
Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ckipp01 ckipp01 merged commit 4298ae9 into scalameta:main Apr 22, 2021
@ckipp01 ckipp01 deleted the newSymbol branch April 22, 2021 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants