Skip to content

String type autocomplete doesn't work with paren #26141

Closed

Description

@Kingwl

TypeScript Version: 3.1.0-dev.201xxxxx

Search Terms:
completion, paren
Code

type A = 'AAAAA' | 'BBBBBB';
type B<T extends A> = {};
type C = B<('/**/')>

Expected behavior:
'AAAAA' or 'BBBBBB'

Actual behavior:
no completions

Related Issues:
#25839

completion cannot walkup useless node (paren type)

Activity

  1. Kingwl commented on Aug 2, 2018

    @Kingwl
    ContributorAuthor

    Ryan Cavanaugh (@RyanCavanaugh) seems not a good first issue

    IMO, we need to support infinite paren type or more complex type rather than special node.parent.parent,
    maybe need some refactor

    eg:

    B<(((((('AAAAA')) | ('B/* here*/')))))>
  2. DanielRosenwasser commented on Aug 3, 2018

    @DanielRosenwasser
    Member

    Hmm - well if it's not, you were looking for more complex issues anyway. 😄

  3. xenia-foxtrot commented on May 22, 2019

    @xenia-foxtrot

    Hey there, I was browsing the issue list and noticed that this one had been fixed by PR #26140
    I figured that the people here might want to know so that this issue can be closed.

  4. jtbandes commented on Apr 5, 2020

    @jtbandes
    Contributor

    Bump! Wesley Wigham (@weswigham) should this one be closed too?

  5. weswigham commented on Apr 5, 2020

    @weswigham
    Member

    Doesn't seem fixed to me. I still get generic "text in file" completions instead of string literal in the 3.9 beta playground.

  6. DanielRosenwasser commented on Sep 4, 2020

    @DanielRosenwasser
    Member
  7. locked as resolved and limited conversation to collaborators on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions