Skip to content

How to implement TypeScript 2.2 plugin? #13436

Closed

Description

@angelozerr

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!

Activity

  1. mhegazy commented on Jan 12, 2017

    @mhegazy
    Contributor

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

  2. added
    Domain: APIRelates to the public API for TypeScript
    QuestionAn issue which isn't directly actionable in code
    DocsThe issue relates to how you learn TypeScript
    on Jan 12, 2017
  3. angelozerr commented on Jan 18, 2017

    @angelozerr
    Author

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

    Thanks again!

  4. typescript-bot commented on Jul 13, 2019

    @typescript-bot
    Contributor

    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.

  5. locked as resolved and limited conversation to collaborators on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions