Skip to content

Port tsserver-plugin tests for remaining uncovered language server functionality #46

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
merged 5 commits into from
Feb 9, 2021

Conversation

dfreeman
Copy link
Member

@dfreeman dfreeman commented Feb 9, 2021

#45 added some baseline tests for the language server based partially on similar tests from the tsserver-plugin test suite. This PR ports coverage for go-to-definition and hover functionality, rounding out coverage for everything the language server currently supports.

Going forward we can port relevant tests as part of implementing new functionality, and when the language server can answer the same questions about a project as we could with tsserver-plugin, we'll be able to drop that entire package and its test suite at once.

Adding these tests also caught a couple small things that I'm fixing as part of this PR:

  • an offsetToPosition bug when dealing with an offset on the last line of a file
  • missing information from doc comments in hover responses

@dfreeman dfreeman added the testing Improvements or changes to testing infrastructure label Feb 9, 2021
@dfreeman dfreeman requested a review from jamescdavis February 9, 2021 17:07
@dfreeman dfreeman force-pushed the additional-ls-tests branch from 517a672 to d166b36 Compare February 9, 2021 17:12
@dfreeman dfreeman force-pushed the additional-ls-tests branch from d166b36 to 70fe195 Compare February 9, 2021 17:25
@dfreeman dfreeman merged commit fa7d224 into master Feb 9, 2021
@dfreeman dfreeman deleted the additional-ls-tests branch February 9, 2021 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Improvements or changes to testing infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant