Skip to content

Support External Files Provided by TS Plugin #30411

Closed

Description

@mjbvz

Problem
Support the new external files option that TS plugins can provide: microsoft/TypeScript#15308

We currently allow TSServer plugin extensions to register themselves for custom language modes. The angular extension for example could register the angular plugin with support for the ng-html language. There were a few problems with the current implementation:

  1. We start automatically syncing all ng-html files with TSServer.
  2. If the angular plugin is not active, TS treats these ng-html files as TypeScript code

Potential Fix
On potential fix we discussed previously: add a plugin property on open requests. TypeScript would look at the plugin property and only start validating the file if has the corresponding plugin.

Activity

  1. added
    plan-item
    typescript
    on Jul 11, 2017
  2. mjbvz commented on Jul 12, 2017

    @mjbvz
    ContributorAuthor

    Tracked upstream by microsoft/TypeScript#17151

  3. mjbvz commented on Jul 24, 2017

    @mjbvz
    ContributorAuthor

    Discussions and planning work done for July. Proposed API: microsoft/TypeScript#17151

    Moving to August since we need an API change on the TS side to support this. This change would likely come with TS 2.5

  4. mjbvz commented on Aug 28, 2017

    @mjbvz
    ContributorAuthor

    Moving out to at least TS 2.6

  5. added
    feature-request
    upstream
    on Nov 14, 2017
  6. mjbvz commented on Dec 15, 2018

    @mjbvz
    ContributorAuthor

    Closing as out of date. Discussion of this feature is at microsoft/TypeScript#17151

  7. added
    *out-of-scope
    on Dec 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*out-of-scopefeature-requestplan-itemtypescriptupstream

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions