Skip to content

Language Service API review #2899

Closed
Closed

Description

I just updated to latest. Would like API equivalents for the following:

ts.typeToDisplayParts
ts.getTokenAtPosition
sourceFile.getNamedDeclarations

Error log:

/fixmyts/addClassMember.ts(5,31): error TS2305: Module '"typescript"' has no exported member 'typeToDisplayParts'.
/fixmyts/equalsToEquals.ts(5,31): error TS2305: Module '"typescript"' has no exported member 'typeToDisplayParts'.
/fixmyts/quoteToTemplate.ts(5,31): error TS2305: Module '"typescript"' has no exported member 'typeToDisplayParts'.
/fixmyts/quotesToQuotes.ts(5,31): error TS2305: Module '"typescript"' has no exported member 'typeToDisplayParts'.
/projectService.ts(736,38): error TS2339: Property 'getNamedDeclarations' does not exist on type 'SourceFile'.
/projectService.ts(922,36): error TS2339: Property 'getTokenAtPosition' does not exist on type 'typeof "typescript"'.

Activity

  1. basarat commented on Apr 24, 2015

    @basarat
    ContributorAuthor

    Mohamed Hegazy (@mhegazy) FWIW I don't need this anymore :) https://github.com/TypeStrong/atom-typescript/tree/master/lib/typescript but leaving it open as other people might need it.

    Worth mentioning "../compiler/diagnosticInformationMap.generated.ts", needs to be in output js before "../compiler/commandLineParser.ts", but is listed in reverse in tsconfig.json. As mentioned previously here the order of files in the presence of out is significant and in this case it is wrong .. just thought I'd point it out 🌹

  2. basarat commented on Apr 25, 2015

    @basarat
    ContributorAuthor

    Worth mentioning

    I've sent a PR : #2917

  3. mhegazy commented on May 6, 2015

    @mhegazy
    Contributor

    Since these are not needed i am going to close this issue. We wanted to limit the public API surface area, for support and maintenance reasons. so unless you need them, I would keep them hidden :)

  4. added
    Won't FixThe severity and priority of this issue do not warrant the time or complexity needed to fix it
    on May 6, 2015
  5. locked and limited conversation to collaborators on Jun 18, 2018
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

    BugA bug in TypeScriptDomain: APIRelates to the public API for TypeScriptWon't FixThe severity and priority of this issue do not warrant the time or complexity needed to fix it

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions