Skip to content

typescript: languages provided by plugins not synced #75088

Closed

Description

@kyliau

tsserver plugins could provide a list of languages so that when a document other than .js[x] and ts[x] is opened, the plugins would be notified.

Angular language service relies on this to parse .html files in Angular templates.

  "contributes": {
    "typescriptServerPlugins": [
      {
        "name": "@angular/language-service",
        "enableForWorkspaceTypeScriptVersions": true,
        "languages": [
          "html"
        ]
      }
    ]
  },

There seems to be a regression whereby languages provided by tsserver plugins are no longer synced (does not have buffer sync support).

This was brought to light by Andrius (@andrius-pra) in angular/vscode-ng-language-service#338 (comment)

For potential fix, please see a5853d6

cc: Matt Bierner (@mjbvz)

Activity

  1. changed the title [-]Languages provided by plugins not synced[/-] [+]typescript: languages provided by plugins not synced[/+] on Jun 7, 2019
  2. mjbvz commented on Jun 7, 2019

    @mjbvz
    Contributor

    Related microsoft/TypeScript#17151

    We only prototyped the support for external languages in TypeScript so this is not really an official API. You'd have to check with the TS team to see if this is still something they are interested in properly supporting as there is other work required beyond this

  3. added
    javascript
    typescript
    on Jun 13, 2019
  4. mjbvz commented on Jun 13, 2019

    @mjbvz
    Contributor

    I merged a pr that fixes this so you can test it and provide feedback, but you must not ship anything to customers that relies on this API. It is not official and may be changed or be removed at any point in the future

  5. added
    feature-request
    on Jun 13, 2019
  6. kyliau commented on Jun 13, 2019

    @kyliau
    Author

    Matt Bierner (@mjbvz) Thanks for the update. I'll test it out locally.
    I'd like to organize a meeting to finalize the design with the Typescript team, so that we can move on with the implementation.

  7. locked and limited conversation to collaborators on Jul 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestjavascripttypescript

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions