Skip to content

Remove unused modulesByIds getter with type narrowing defect#130

Closed
Copilot wants to merge 1 commit into
claude/fix-performance-issues-KIJSzfrom
copilot/sub-pr-129
Closed

Remove unused modulesByIds getter with type narrowing defect#130
Copilot wants to merge 1 commit into
claude/fix-performance-issues-KIJSzfrom
copilot/sub-pr-129

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 7, 2026

The modulesByIds getter used .filter(f => f) which fails to type-narrow, leaving the return type as (Module | undefined)[] instead of Module[]. The getter was also never referenced outside store.ts.

Changes

  • src/helpers/store.ts: Removed the modulesByIds getter entirely — dead code with no callers in the codebase.

💡 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.

Copilot AI changed the title [WIP] Fix performance issue for O(n*m) lookups and computations Remove unused modulesByIds getter with type narrowing defect Mar 7, 2026
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.

2 participants