Skip to content
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

fix(check/lsp): correctly resolve compilerOptions.types #27686

Merged
merged 9 commits into from
Jan 16, 2025

Conversation

nathanwhit
Copy link
Member

Fixes #27062

In the LSP we were passing npm specifiers to TSC as roots, but TSC needs fully resolved specifiers (like the actual file path).

In deno check we were often excluding the specifiers entirely from the roots.

In both cases, we need to resolve the specifiers fully and then pass them to tsc

@nathanwhit nathanwhit force-pushed the compiler-options-types branch from bf2c75a to a5d228e Compare January 15, 2025 21:52
@nathanwhit nathanwhit force-pushed the compiler-options-types branch from 9e35157 to b98db29 Compare January 15, 2025 22:02
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM!

@nathanwhit nathanwhit merged commit 3270821 into denoland:main Jan 16, 2025
17 checks passed
@nathanwhit nathanwhit deleted the compiler-options-types branch January 16, 2025 02:48
bartlomieju pushed a commit that referenced this pull request Jan 16, 2025
Fixes #27062

In the LSP we were passing `npm` specifiers to TSC as roots, but TSC
needs fully resolved specifiers (like the actual file path).

In `deno check` we were often excluding the specifiers entirely from the
roots.

In both cases, we need to resolve the specifiers fully and then pass
them to tsc
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.

deno check ignores compilerOptions.types in deno.json
3 participants