Skip to content

TypeScript intellisence proposes snippets before properties in object literals #6667

Closed

Description

  • VSCode Version: alpha
  • OS Version: Windows 10

See screen shot:

capture

Activity

  1. added
    bug
    important
    typescript
    and removed
    important
    on May 23, 2016
  2. dbaeumer commented on May 23, 2016

    @dbaeumer
    MemberAuthor

    Johannes Rieken (@jrieken) Martin Aeschlimann (@aeschli) the snippets are declared in the package.json pointing to an external file. Who decides to sort them before the properties returned from the intellisense. I always thought language suggestions come first.

  3. jrieken commented on May 23, 2016

    @jrieken
    Contributor

    Snippets have been sorted like regular suggestion ever since - generally we sort all suggestion alphabetically and reveal the best match. The real issue here is that none of the snippets make sense there. Which would make it a duplicate of #1304. Otherwise, it looks like a dupe of #2343 - and for consideration there is folks that want snippet more than everything else: #5121

  4. dbaeumer commented on May 24, 2016

    @dbaeumer
    MemberAuthor

    Johannes Rieken (@jrieken) this doesn't seem to be the case for JS. Here is a screen shot with Code Complete in a JS file in our smoke test. Interestingly snippets appear at the end here:

    capture

  5. dbaeumer commented on May 24, 2016

    @dbaeumer
    MemberAuthor

    I will remove the May milestone since this is nothing we can cleanup for May. However we need to agree on a better story here.

  6. removed this from the May 2016 milestone on May 24, 2016
  7. jrieken commented on May 24, 2016

    @jrieken
    Contributor

    my guess is that that's because of the sortText some suggestions in JS have. we should digg into that...

  8. dbaeumer commented on May 24, 2016

    @dbaeumer
    MemberAuthor

    Yes, it is because of the sort text. Martin Aeschlimann (@aeschli) and I debugged it. However from an end user experience this is confusing. We should invest into a better and more consistent story here.

  9. jrieken commented on May 24, 2016

    @jrieken
    Contributor

    Agree. The idea of the sortText was to give suggestions with complex labels a any chance to get a good sorting. Problem with JS salsa suggestion is that it sets the sort text to either 0 or 1.

  10. empz commented on Jun 27, 2016

    @empz

    Came here to post this issue too.
    image

    As you can see, inside the fetch parameter of type RequestInit, snippets are shown in the middle of the properties. I think they should be shown at the end or even not shown at all. I think snippets make sense when in an empty line, not in the middle of a function call, right?

  11. heroboy commented on Jul 8, 2016

    @heroboy

    vscode:1.3.0

    press tab not complete the property, but show the snippet.

    seterror

  12. Haemoglobin commented on Jul 16, 2016

    @Haemoglobin

    👍

  13. removed
    typescript
    on Jul 20, 2016
  14. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugverified

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions