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(lsp): implement missing ts server host apis #23131

Merged
merged 3 commits into from
Mar 29, 2024

Conversation

nayeemrmn
Copy link
Collaborator

@nayeemrmn nayeemrmn commented Mar 29, 2024

Implements host.toPath() and host.watchNodeModulesForPackageJsonChanges().

They're used here: https://github.com/microsoft/TypeScript/blob/v5.4.3/src/server/moduleSpecifierCache.ts#L30-L53.

There's an error for the latter API missing in the logs from #22391 (toPath() would apply to more recent versions). The call sites affected by this error (e.g. populating module specifier cache) seem related so it might fix it.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@nayeemrmn nayeemrmn changed the title fix(lsp): implement host.watchNodeModulesForPackageJsonChanges() fix(lsp): implement missing ts server host apis Mar 29, 2024
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM, let's try it

@nayeemrmn nayeemrmn merged commit 524e451 into denoland:main Mar 29, 2024
17 checks passed
@nayeemrmn nayeemrmn deleted the lsp-host-watch-node-modules branch March 30, 2024 14:50
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.

None yet

2 participants