Skip to content

Consider loose completions in the syntax server on unresolved/error types #39034

Open
@DanielRosenwasser

Description

@DanielRosenwasser

Assume that no type named Foo exists in the current project, and assume the current file.

export let x: Foo;

x./**/

When requesting completions at /**/, we should consider giving a list of identifiers in the current file, similar to what we do for any in JavaScript files. This contrived example isn't great, but when opening a larger file, this could be helpful.

This is somewhat related to

Metadata

Metadata

Assignees

No one assigned

    Labels

    In DiscussionNot yet reached consensusSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions