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

Tsserver plugin question #40872

Closed
CGQAQ opened this issue Oct 1, 2020 · 2 comments
Closed

Tsserver plugin question #40872

CGQAQ opened this issue Oct 1, 2020 · 2 comments
Assignees
Labels
Question An issue which isn't directly actionable in code Rescheduled This issue was previously scheduled to an earlier milestone

Comments

@CGQAQ
Copy link

CGQAQ commented Oct 1, 2020

https://github.com/denoland/vscode_deno/blob/ddfe30c5907324b623be0a9d20f1c1dc011e13fa/typescript-deno-plugin/src/plugin.ts#L491
We proxy the languageServiceHost.resolveModuleNames method and replace the import path to let ts import the d.ts file instead of the original js file. but there is a problem that when you open the file for the first time, it does not work until you type something(change the file). I'm wondering how to refresh the cache so that you don't need to change the file in order to make it work?

here is what i've been tried

image

you need to change the file in order to make it work

KXgQj81unt

here is the problem screencapture

lTGP5Llsvj

denoland/vscode_deno#97

@RyanCavanaugh RyanCavanaugh added the Needs Investigation This issue needs a team member to investigate its status. label Oct 1, 2020
@RyanCavanaugh RyanCavanaugh added this to the TypeScript 4.2.0 milestone Oct 1, 2020
@RyanCavanaugh RyanCavanaugh added the Rescheduled This issue was previously scheduled to an earlier milestone label Mar 4, 2021
@sheetalkamat
Copy link
Member

Is this still the issue? I see that enablePluginWithOptions is called before the project is updated with the load..
https://github.com/microsoft/TypeScript/blob/master/src/server/editorServices.ts#L2142

If that doesnt work, can you create small repro that shows the issue you are seeing so its easier to investigate. Thanks

@sheetalkamat sheetalkamat added Question An issue which isn't directly actionable in code and removed Needs Investigation This issue needs a team member to investigate its status. labels May 3, 2021
@typescript-bot
Copy link
Collaborator

This issue has been marked as 'Question' and has seen no recent activity. It has been automatically closed for house-keeping purposes. If you're still waiting on a response, questions are usually better suited to stackoverflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question An issue which isn't directly actionable in code Rescheduled This issue was previously scheduled to an earlier milestone
Projects
None yet
Development

No branches or pull requests

5 participants