Skip to content

Global keywords in code suggestion shadowed by auto imports with same name #3371

@yume-chan

Description

@yume-chan

Extension Version

0.20260408.1

VS Code Version

1.116.0-insider (fc6d18c3174aa8962d90435aba5b51ef6c300b9a)

Operating system Version

Windows 11

Steps to reproduce

// @Filename: /mod.ts
const value = 1;
export { value as function }

// @Filename: /index.ts
function/**/

For example, Zod (https://zod.dev/api#functions) and Valibot (https://valibot.dev/api/function/) both have exports named function

Issue

Only the function auto import from './mod.ts' shows in code suggestion, causing difficulties in writing code normally.

Other global keywords including class and const are also affected (if exports with the name exist).

Ideally there should be two code suggestion items?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: EditorRelated to the LSP server, editor experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions