Skip to content

Navigation bar in .d.ts file ignores interfaces when cursor is outside the interface #3026

Closed
@JsonFreeman

Description

@JsonFreeman

For the following code:

declare namespace M {
    // cursor here
    interface I {

        prop;
    }

    var v;
}

One would expect the middle nav bar to show M, and the right nav bar to show I. But the right nav bar shows v. Effectively, it skips interfaces and shows the upcoming var instead.

The middle nav bar does show I when the cursor is inside I, as expected.
navbarskipsinterfaces

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issueHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions