GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — getTypeAtLocation fails for import specifiers that resolve to a type alias · Issue #35233 · microsoft/TypeScript

getTypeAtLocation fails for import specifiers that resolve to a type alias #35233

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
getTypeAtLocation fails for import specifiers that resolve to a type alias#35233
Copy link
Labels
7.0 LS MigrationBugA bug in TypeScriptA bug in TypeScriptDomain: APIRelates to the public API for TypeScriptRelates to the public API for TypeScriptDomain: LS: Type DisplayBugs relating to showing types in Quick Info/Tooltips, Signature Help, or Completion InfoBugs relating to showing types in Quick Info/Tooltips, Signature Help, or Completion Info
Milestone
Backlog

Description

@andrewbranch
Andrew Branch (andrewbranch)
opened on Nov 20, 2019
Issue body actions

Baseline test:

// @Filename: /a.ts
class A {}
export type B = A;

// @Filename: /b.ts
import { B as C } from './a';

Types baseline:

=== /a.ts ===
class A {}
>A : A

export type B = A;
>B : A

=== /b.ts ===
import { B as C } from './a';
>B : any
>C : any

Note that during the normal course of checking, everything works fine, because we don’t ask for the type of the import specifier. If someone were to use C, we’d ask for the type of the type reference, and we’d start by resolving the alias all the way to its origin. So only when the baseline writer specifically asks for the type at B and C do we hit this bug. So, it’s fairly unimportant. I investigated this and an opening the issue to document that some any readouts in #35200 are exhibiting some existing poor behavior, and fixing it there would be out of scope.

Activity

  1. Andrew Branch (andrewbranch)
    added
    BugA bug in TypeScriptA bug in TypeScript
    Domain: APIRelates to the public API for TypeScriptRelates to the public API for TypeScript
    on Nov 20, 2019
  2. Andrew Branch (andrewbranch)
    added this to the Backlog milestone on Nov 20, 2019
  3. Ryan Cavanaugh (RyanCavanaugh)
    added
    Domain: LS: Type DisplayBugs relating to showing types in Quick Info/Tooltips, Signature Help, or Completion InfoBugs relating to showing types in Quick Info/Tooltips, Signature Help, or Completion Info
    on Oct 16, 2025
  4. Ryan Cavanaugh (RyanCavanaugh)
    added
    7.0 LS Migration
    on Dec 2, 2025
  5. Ryan Cavanaugh (RyanCavanaugh)
    closed this as not plannedon Dec 3, 2025
  6. microsoft
    locked as resolved and limited conversation to collaborators on Dec 3, 2025
  7. RyanCavanaugh commented on Dec 3, 2025

    @RyanCavanaugh
    Ryan Cavanaugh (RyanCavanaugh)
    on Dec 3, 2025
    Member
    More actions

    Closing language service bugs related to the 6.0 implementation. For more information, see #62827

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

    7.0 LS MigrationBugA bug in TypeScriptA bug in TypeScriptDomain: APIRelates to the public API for TypeScriptRelates to the public API for TypeScriptDomain: LS: Type DisplayBugs relating to showing types in Quick Info/Tooltips, Signature Help, or Completion InfoBugs relating to showing types in Quick Info/Tooltips, Signature Help, or Completion Info

    Type

    No type

    Projects

    No projects

      Milestone

      • BacklogNo due date

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.