Skip to content

Prevent removing unused imports in TypeScript tests #6576

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

Closed
miherlosev opened this issue Sep 29, 2021 · 1 comment
Closed

Prevent removing unused imports in TypeScript tests #6576

miherlosev opened this issue Sep 29, 2021 · 1 comment
Labels
SYSTEM: debug mode TYPE: enhancement The accepted proposal for future implementation.

Comments

@miherlosev
Copy link
Collaborator

Files to reproduce.zip

Steps to reproduce:

  • unpack and run the run.js file in the IDE's debug mode
  • put the pageModel expression in Watch panel
  • your get pageModel is not defined error instead of correct evaluation result in JavaScript tests.
@miherlosev miherlosev added SYSTEM: debug mode TYPE: enhancement The accepted proposal for future implementation. labels Sep 29, 2021
@miherlosev
Copy link
Collaborator Author

It's an expected behavior of TypeScript (see why-are-imports-being-elided-in-my-emit, microsoft/TypeScript#9191).

In the future, this behavior can be customizable (microsoft/TypeScript#44519).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SYSTEM: debug mode TYPE: enhancement The accepted proposal for future implementation.
Projects
None yet
Development

No branches or pull requests

1 participant