Skip to content

fix(tsc): preserve informational output - #3754

Open
amandeavor wants to merge 1 commit into
rtk-ai:developfrom
amandeavor:fix/tsc-informational-output
Open

amandeavor wants to merge 1 commit into
rtk-ai:developfrom
amandeavor:fix/tsc-informational-output

Conversation

@amandeavor

Copy link
Copy Markdown
Contributor

Summary

  • pass TypeScript informational invocations through without diagnostic filtering
  • preserve native output for config, file listings, initialization, help, and version commands
  • keep normal typecheck invocations on the compact diagnostic path
  • retain the existing npx tsc fallback when tsc is not installed directly

Closes #3750

Tests

  • added coverage for every informational flag
  • added coverage that regular --noEmit and project typechecks remain filtered
  • cargo fmt --all --check
  • cargo clippy --all-targets
  • cargo test --all -- --test-threads=1

Copilot AI lite review requested due to automatic review settings August 29, 2026 07:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

kylehgc added a commit to kylehgc/rtk that referenced this pull request Sep 8, 2026
fix(tsc): preserve informational output (adopt upstream rtk-ai#3754)
@amandeavor
amandeavor force-pushed the fix/tsc-informational-output branch from a789c1c to b462488 Compare September 25, 2026 07:21
@amandeavor
amandeavor force-pushed the fix/tsc-informational-output branch 6 times, most recently from 7db5459 to 5cc8c9e Compare October 23, 2026 16:43
Pass --showConfig/--listFiles/--init/--help/--version through without diagnostic filtering so native tsc output is preserved. Regular typechecks stay on the compact path.
@KuSh

KuSh commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator

#4348 (merged 2026-10-14) made the runner pass --help, -h and --version through unfiltered for every tool, so those entries of INFORMATIONAL_FLAGS are already handled on develop. What develop still lacks is the passthrough for --showConfig, --listFiles, --listFilesOnly, --init and -v in src/cmds/js/tsc_cmd.rs, which develop still summarises as TypeScript: No errors found, plus your test that a typecheck run stays filtered. Could you rebase onto current develop and narrow the PR to those flags? On the rebase, please classify the arguments through arg_tokenizer rather than a string comparison over argv, as src/core/README.md asks for new flag handling. Thanks for the fix.

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.

bug(tsc): informational output (--showConfig, --listFiles, --init, --help) is replaced by "TypeScript: No errors found" and is unrecoverable

3 participants