-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
TypeScrip: Support forward commands between ts plugin and ts server. #146879
Comments
@Kingwl For inline values, I assumed that we were going to add this functionality to VS Code's built-in TypeScript extension. Were you planning this ship this as a separate extension instead? Or do you have additional use cases for allowing a VS Code extension talk directly to a TS Server plugin? |
I'm ok with both of them.
Basically, it's like this one: Do something what VSCode builtin extension does not implemented yet. For developers, It's more powerful for TypeScript and VSCode's integration. And there's also a additional gift for VSCode's team and TypeScript team is: preview / early access editor features by provide some offical VSCode's extension. rather than follow the release schedule. |
Thanks for the details. I think we inline values support should be built into VS Code. However I can see how this might be useful for other extensions, although we should probably hold off on adding this until we have more concrete use cases When I discussed this with the TS team, we also had a few concerns:
Anything I missed from our discussion @DanielRosenwasser? |
Well... I just realized that we can start a tcp/websocket between ts plugin and vscode extensions. So this feature request will not be required. |
We can support some features what TypeScript/VSCode extension doesn't supported yet! |
We have issues: #119489 and PRs: #129382, #146608
And in the ts side. There's already implemented add custom handler in ts plugin via microsoft/TypeScript#44291.
I think It's better to register a builtin command such as
forwardTsServer
or others.And with that, we can shell command in our own vscode extension to send some command into tsserver. And handle the command in ts plugin.
In this way, we can share the current ts program instance rather than create a new tsserver. And we can avoid tons of config/setup for the new tsserver which nearly no one can do that.
The text was updated successfully, but these errors were encountered: