Skip to content

Conversation

Copy link

Copilot AI commented Jun 5, 2025

  • Analyze repository structure and current module resolution code
  • Identify the issue in internal/module/resolver.go - inconsistent handling of resolvedUsingTsExtension flag in .tsx/.jsx case
  • Fix the inconsistency in the .tsx/.jsx case to match the pattern used in .ts/.dts/.js case
  • Run build to verify changes compile
  • Run tests and handle expected baseline changes
  • Verify the changes are minimal and correct

Analysis: Found inconsistency in tryAddingExtensions function where the .tsx/.jsx case only checks for .tsx when setting the resolvedUsingTsExtension flag, but should also check for .jsx to be consistent with how the .ts/.dts/.js case handles both .ts and .dts.

Fixes #2.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

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.

Port #60262

2 participants