-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
[tss plugin] What is configurePlugin actually do? #106567
Comments
(Experimental duplicate detection) |
What isn't working? If you have a minimal example I can take a look but I can't debug your complete extension/plugin. As a reference, the tslint extension/plugin is using this api without issue: |
@mjbvz this one doesn't work, you can see in the tsserver.log, the return value has changed, but types declared in the d.ts file didn't show up in IntelliSense |
The server log shows that configure plugin is working (at least from the server's point of view). Again |
but this is back to the microsoft/TypeScript#40503 again, how to load it. I also tried restart tsserver by run command |
How the plugin tell tssever to change files in the project(add/remove files from project), I'm so confused.
|
There is no api for that, your plugin needs to implement it. I suggest you wait for someone on the TS team to respond to microsoft/TypeScript#40503 I'm closing this issue since there does not appear to be a bug. Please follow up in the TypeScript issue. (also |
@mjbvz can you tell me which API should I use to implement it |
what is
configurePlugin(pluginId: string, configuration: ConfigurationField): void;
fromvscode.typescript-language-features
actually do?like I asked in microsoft/vscode#106465
getScriptFileNames
return valuegetProgram
? This one I don't know if use it in a right wayI've changed the flag, and tsserver.log show that it is worked, but the change still didn't apply at all
@mjbvz said in #106402
I tried do this, but didn't work
code
I also tried restart tsserver by run command
commands.executeCommand("typescript.restartTsServer");
and reload project bycommands.executeCommand("typescript.reloadProjects");
afterconfigurePlugin
, didn't work eitherThe text was updated successfully, but these errors were encountered: