Skip to content

Autocompletion doesn't suggest global variables exposed from dependent packages (regression) #32675

Closed

Description

Hiding global variables from autocomplition is very annoying because other candidates make unnecessary import statements (We can't use autocompletion without making them).

Search Terms:

Code

  1. clone https://github.com/falsandtru/spica
  2. run npm i
  3. open index.ts
  4. type asse
  5. suggests 2 candidates of assert but doesn't include global one.

Global assert is defined here: https://github.com/falsandtru/spica/blob/master/global.test.d.ts#L6

Expected behavior:

Suggests global assert and packaged assert.

Actual behavior:

Suggests packaged assert twice.

Playground Link:

Related Issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

BugA bug in TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions