Skip to content

[VS2015]Imported class missing from completions in JSX body in extends expression #4577

Closed

Description

jsxcompletionsomitsimport

It looks like it's also missing in any other JSX-expression context.

Activity

  1. mhegazy commented on Sep 1, 2015

    @mhegazy
    Contributor

    i find the colorization of if (true) annoyingly wrong as well.

  2. weswigham commented on Sep 1, 2015

    @weswigham
    MemberAuthor

    Isn't it colorized correctly?

  3. mhegazy commented on Sep 3, 2015

    @mhegazy
    Contributor

    well.. lexically yes. but it should not have been.. we need to add a new context for being in a jsx element..

  4. danquirk commented on Sep 3, 2015

    @danquirk
    Member

    Why wouldn't you want your TypeScript code colorized just because it's in a JSX block?

  5. DanielRosenwasser commented on Sep 3, 2015

    @DanielRosenwasser
    Member

    To clarify, it is not colorized correctly, it is colorized as if the code is not JSX text. In reality, that should be treated like a string literal.

    Visual Studio won't correctly classify this until we have the syntactic classifier back. This honestly might not be too bad to fix in the TextMate grammar though.

  6. olmobrutall commented on Feb 6, 2016

    @olmobrutall

    Hi guys,

    My issue (#6931) has been classified as a duplicate of this one, but this looks to me like and old corner case bug while in my experience the problem is quite massive.

    In tsx, when using generic types, autocomplete only lets you choose functions. In this case I want to select boolean but only Boolean is shown.

    image

    Also as noted here imported components don't work when creating JSX tags. You don't need esoteric inheritance with if statements to reproduce it like in the initial example, any JSX tag reproduces this bug.

    image

    This means the experience using libraries like react-bootstrap, react-widgets or writing any non-trivial app with imported components gets downgraded.

    Maybe this should be included in 1.8.2?

    Thanks for you work!

  7. added a commit that references this issue on Mar 1, 2016
    6cdbc6c
  8. added
    Fixed
    on Mar 1, 2016
  9. RyanCavanaugh commented on Mar 1, 2016

    @RyanCavanaugh
    Member

    Fix pending @ #7326

  10. locked and limited conversation to collaborators on Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugFixed

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions