Skip to content

Bad Completion on import of scoped package defined with @types #15533

Description

@aozgaa

scopedpackageimportcompletion2

TypeScript Version: master, commit c349dea8714f384c24

Code

At the caret (^), get completions, typing ctrl+space to do so.

// app.ts
import * as A from "^";

// node_modules/@types/foo__bar/index.d.ts
declare module "@biz/baz" { function fun(): string; }

// node_modules/@types/a__b/index.d.ts
export declare let x: number;

Expected behavior:
Get import for @foo/bar ,@biz/baz and @a/b

Actual behavior:

Get import for foo__bar, @biz/baz and a__b.

EDIT: clarifications

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions