Skip to content

sortText not set on property completions if triggered without typing #30013

Closed

Description

@mjbvz

TypeScript Version: 3.4.0-dev.20190220

Search Terms:

  • completions
  • suggestions
  • sortText

Code
For the TypeScript code:

class Foo {
    prop: number;

    render() {
        
    }
}

Trigger suggestions in render using ctrl+space instead of typing

Expected behavior:
The suggestions for prop and render should have a higher sortText value. This is what we see when suggestions are triggered after you start typing:

class Foo {
    prop: number;

    render() {
        t|
    }
}

Actual behavior:
The sortText is "0" for all suggestions, including those for properties

Playground Link:

Related Issues:

Activity

  1. changed the title [-]`sortText` not set on property completions if triggered [/-] [+]`sortText` not set on property completions if triggered without typing[/+] on Feb 21, 2019
  2. sheetalkamat commented on May 16, 2019

    @sheetalkamat
    Member

    Matt Bierner (@mjbvz) I don't see any difference between getting completions with ctr+space or typing.
    The sort text issue is #15024
    tsserver.log

  3. added
    Needs More InfoThe issue still hasn't been fully clarified
    and removed
    Needs More InfoThe issue still hasn't been fully clarified
    on May 16, 2019
  4. sheetalkamat commented on May 16, 2019

    @sheetalkamat
    Member

    So duplicate of #15024 ?

  5. mjbvz commented on May 17, 2019

    @mjbvz
    ContributorAuthor

    Yes, this falls under #15024

  6. 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

Labels

BugA bug in TypeScriptDuplicateAn existing issue was already created

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions