-
Notifications
You must be signed in to change notification settings - Fork 720
Fix getSymbolAtLocation for importCall #1587
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes the getSymbolAtLocation
function for import calls, specifically addressing an issue found while porting TypeScript build tests. The change ensures that module resolution symbols are properly returned when analyzing dynamic import expressions and import type declarations.
Key Changes
- Updated symbol resolution logic for import call expressions to correctly identify and return module symbols
- Modified how the TypeScript compiler Go port handles module symbol resolution during type checking
Reviewed Changes
Copilot reviewed 201 out of 201 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js |
Baseline test data for TypeScript build system showing error reporting changes |
testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js |
Baseline test data for transitive module type inference |
testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js |
Baseline test data for transitive module type inference with isolated modules enabled |
testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsCJS.symbols.diff |
Symbol table differences for CommonJS module syntax restrictions |
testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsCJS.symbols |
Updated symbol table baseline for CommonJS module syntax |
Various nodeModules*.symbols.diff and nodeModules*.symbols files |
Symbol table updates for Node.js module resolution across different module types (node16, node18, nodenext) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yess, awesome, thanks.
Seems like an LS test is failing; might be one that needs to be skipped? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM though hopefully people don't see the panic that often.
Found this while porting tsc -b tests
9851d23