Skip to content

Expand when isNewIdentifierLocation is set in the syntax server #39033

Open
@DanielRosenwasser

Description

@DanielRosenwasser

In #37713, we might not have a full picture of the world, so it might overly restrictive to only suggest identifiers in the current file. We should consider being more permissive so that editors don't aggressively auto-complete on identifiers in these contexts.


Aside: if we do this, we should make sure that the work done in #38836 doesn't cause conflicts.

For example, let's say you have an empty file like

thing/**/

and completions get triggered at /**/. A user should not get completions for thing at that point.

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