Skip to content

Conversation

@Twacqwq
Copy link
Contributor

@Twacqwq Twacqwq commented Oct 28, 2025

Temporary symbols/Literal Syntax Sugar (e.g., []., (class {}).) have no origin data - I just want to check if they're nil and skip processing if so.

Fixes #1950

@jakebailey
Copy link
Member

Did you happen to come up with a test case for this?

@Twacqwq
Copy link
Contributor Author

Twacqwq commented Oct 28, 2025

Did you happen to come up with a test case for this?

I can think of two test cases, but I'm not sure where to place them in the test/ directory.

@jakebailey
Copy link
Member

You'd want to put them in https://github.com/microsoft/typescript-go/tree/main/internal/fourslash/tests as another fourslash test.

@Twacqwq
Copy link
Contributor Author

Twacqwq commented Oct 28, 2025

You'd want to put them in https://github.com/microsoft/typescript-go/tree/main/internal/fourslash/tests as another fourslash test.

Thanks. I'll update it soon.

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.

completionItem/resolve symbolOriginInfo: unknown data type for moduleSymbol

2 participants