Skip to content

fix(lsp): honor TypeScript directives for missing imports - #36879

Draft
pederbe wants to merge 1 commit into
denoland:mainfrom
pederbe:learn/35593-lsp-import-suppression
Draft

pederbe wants to merge 1 commit into
denoland:mainfrom
pederbe:learn/35593-lsp-import-suppression

Conversation

@pederbe

@pederbe pederbe commented Sep 21, 2026

Copy link
Copy Markdown

Honor @ts-ignore and @ts-expect-error for missing bare, local, and uncached imports in language-server diagnostics. Apply comment attachment rules to parsed comments and preserve unused @ts-expect-error diagnostics when no error consumes the directive.

Fixes #35593.

I used Codex to assist coding and testing. I personally reviewed all work and verified testing.

This branch has not been deployed

No deployments
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.

TS2307 still cannot be suppressed in the language server

1 participant