Skip to content

Conversation

jadestrong
Copy link
Contributor

Fixes #52270

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Jan 18, 2023
@DanielRosenwasser
Copy link
Member

We'll need a regression test - something that wasn't working before this change, but does work now.

@andrewbranch
Copy link
Member

I don’t think there’s a way to write a test for this besides asserting the optionalReplacementSpan you expect in a unit test in src/testRunner/unittests/tsserver/completionsIncomplete.ts. The fourslash tests aren’t set up to do continuations IIRC.

@jadestrong
Copy link
Contributor Author

image

I tried to add a regression test, here are the test results before this change

@jadestrong
Copy link
Contributor Author

@microsoft-github-policy-service agree

Copy link
Member

@andrewbranch andrewbranch left a comment

Choose a reason for hiding this comment

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

Thanks for catching this and fixing it! 🌟

@andrewbranch andrewbranch merged commit 1e99934 into microsoft:main Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

optionalReplacementSpan not update when hit a incompleteCompletionsCache?
4 participants