Skip to content

Path IntelliSense for jsdoc imports types #25275

@mjbvz

Description

@mjbvz

microsoft/vscode#53093

TypeScript Version: 3.0.0-dev.20180626

Search Terms:

  • jsdoc
  • import expression
  • suggestions / intellisense

Code
For a project:

a.ts

export type T = number

b.js

/**
 * @param {import('./')} x
 */
function foo(x) {
}
  1. Try trigger path intellisense after the ./

Expected behavior:
Path suggestions returned. This is what happens if you use import types in a ts file

screen shot 2018-06-27 at 10 04 32 am

Actual behavior:
No completions returned

screen shot 2018-06-27 at 10 04 40 am

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions