GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — `sortText` not set on property completions if triggered without typing · Issue #30013 · microsoft/TypeScript

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

New issue
Copy link
New issue
Copy link
Closed
Closed
sortText not set on property completions if triggered without typing#30013
Copy link
Assignees
sheetalkamat
Labels
BugA bug in TypeScriptA bug in TypeScriptDuplicateAn existing issue was already createdAn existing issue was already created
Milestone
TypeScript 3.5.0

Description

@mjbvz
Matt Bierner (mjbvz)
opened on Feb 21, 2019
Issue body actions

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. Matt Bierner (mjbvz)
    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. Ryan Cavanaugh (RyanCavanaugh)
    added
    BugA bug in TypeScriptA bug in TypeScript
    on Feb 27, 2019
  3. Ryan Cavanaugh (RyanCavanaugh)
    assigned
    Sheetal Nandi (sheetalkamat)
    on Feb 27, 2019
  4. Ryan Cavanaugh (RyanCavanaugh)
    added this to the TypeScript 3.5.0 milestone on Feb 27, 2019
  5. sheetalkamat commented on May 16, 2019

    @sheetalkamat
    Sheetal Nandi (sheetalkamat)
    on May 16, 2019
    Member
    More actions

    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

  6. Sheetal Nandi (sheetalkamat)
    added
    Needs More InfoThe issue still hasn't been fully clarifiedThe issue still hasn't been fully clarified
    and removed
    Needs More InfoThe issue still hasn't been fully clarifiedThe issue still hasn't been fully clarified
    on May 16, 2019
  7. sheetalkamat commented on May 16, 2019

    @sheetalkamat
    Sheetal Nandi (sheetalkamat)
    on May 16, 2019
    Member
    More actions

    So duplicate of #15024 ?

  8. mjbvz commented on May 17, 2019

    @mjbvz
    Matt Bierner (mjbvz)
    on May 17, 2019
    ContributorAuthor
    More actions

    Yes, this falls under #15024

  9. Matt Bierner (mjbvz)
    closed this as completedon May 17, 2019
  10. Matt Bierner (mjbvz)
    added
    DuplicateAn existing issue was already createdAn existing issue was already created
    on May 17, 2019
  11. microsoft
    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

  • @sheetalkamat
    Sheetal Nandi (sheetalkamat)

Labels

BugA bug in TypeScriptA bug in TypeScriptDuplicateAn existing issue was already createdAn existing issue was already created

Type

No type

Projects

No projects

    Milestone

    • TypeScript 3.5.0

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.