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

How to implement TypeScript 2.2 plugin? #13436

Closed
angelozerr opened this issue Jan 12, 2017 · 3 comments
Closed

How to implement TypeScript 2.2 plugin? #13436

angelozerr opened this issue Jan 12, 2017 · 3 comments
Labels
Question An issue which isn't directly actionable in code

Comments

@angelozerr
Copy link

TypeScript 2.2 will provide the capability to customize TypeScript tsserver commands with plugin.

Today it exists 2 plugins :

I'm trying to implement tslint plugin like Angular2 plugin, but it should be cool if we could have a guide like "How to implement TypeScript plugin". For instance I have noticed that Angular2 plugin waits a method create(info: ts.server.PluginCreateInfo). Could you specify please which properties contains ts.server.PluginCreateInfo (it seems that there is languageServiceHost, languageService and project)

Could you tell me please the strategy for loading the plugin? How tsserver which plugins it must load?

Many thanks for your clarification!

@mhegazy
Copy link
Contributor

mhegazy commented Jan 12, 2017

This is still work in progress. so there is not really a TS 2.2 plugin. you can follow the progress in #12231

@mhegazy mhegazy added API Relates to the public API for TypeScript Question An issue which isn't directly actionable in code Docs The issue relates to how you learn TypeScript labels Jan 12, 2017
@angelozerr
Copy link
Author

Thanks @mhegazy for your answer. Now I see how to plugins to load are declared (in the tsconfig.json).

Thanks again!

@RyanCavanaugh RyanCavanaugh removed API Relates to the public API for TypeScript Docs The issue relates to how you learn TypeScript labels Mar 6, 2019
@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
Projects
None yet
Development

No branches or pull requests

4 participants