-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Handle undefined location.parent
when getting completionEntryDetails
#54138
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
Conversation
Tests are pending because I don't know how to test |
Where is this location coming from? All source files should be bound and have parents, so is this location the SourceFile itself? |
Correct. So with the example from the bug:
When explicitly requesting completions in |
@jakebailey @DanielRosenwasser @andrewbranch any hints on how I can test this with fourslash? |
Are the details in https://github.com/microsoft/TypeScript/blob/main/tests/cases/fourslash/completionsObjectLiteralMethod2.ts what you're trying to get at? |
Hmm no this isn't helping me here. The completion entry remains the same with and without my change, like I need to simulate selecting the actual completion to trigger the failure. |
Okay I was able to test this with |
Fixes #54106