Skip to content

Add tsserver test for completions and avoid excess properties #25622

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

Merged
2 commits merged into from
Aug 27, 2018

Conversation

ghost
Copy link

@ghost ghost commented Jul 13, 2018

@amcasey Noticed that we were returning excess properties in the completions code actions. (#202)

@ghost ghost requested a review from amcasey July 13, 2018 00:02
@ghost ghost force-pushed the test_completions branch from 2916da3 to fb9715b Compare July 13, 2018 00:54
Copy link
Member

@amcasey amcasey left a comment

Choose a reason for hiding this comment

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

Thanks!

}

function codeFixActionToCodeAction({ description, changes, commands }: CodeFixAction): CodeAction {
return { description, changes, commands };
Copy link
Member

Choose a reason for hiding this comment

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

Drop commands too?

Copy link
Author

Choose a reason for hiding this comment

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

Currently protocol.ts CompletionEntryDetails contains a CodeAction[] and CodeAction has commands on it. I could make a CodeActionWithoutCommands interface if you think it's important that a completion never has commands (which it probably shouldn't since they're easy to trigger on accident).

Copy link
Author

Choose a reason for hiding this comment

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

@amcasey Please open a new issue if you would like CodeActionWithoutCommands.

Copy link
Member

Choose a reason for hiding this comment

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

Not very important. Thanks for following up though!

@ghost ghost merged commit 4cf5774 into master Aug 27, 2018
@ghost ghost deleted the test_completions branch August 27, 2018 23:04
This pull request was closed.
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.

1 participant