Skip to content

Crash for completion at beginning of JSX closing tag when intrinsic not defined #5953

Closed
@DanielRosenwasser

Description

@DanielRosenwasser

Don't use a react.d.ts of any sort.

var x = <div></

Request completion at the end

Expected: No tears, only dreams.
Actual: Tears

Description:

getCompletionsAtPosition('C:\Users\drosen\AppData\Local\Temp\~vs88A1.tsx', 15)

StackTrace:

TypeError: Unable to get property 'flags' of undefined or null reference
   at buildSymbolDisplay (:15602:17)
   at symbolToString (:15483:13)
   at getDeclaredName (:42053:9)
   at getCompletionEntryDisplayNameForSymbol (:46776:13)
   at createCompletionEntry (:47587:17)
   at getCompletionEntriesFromSymbols (:47611:25)
   at getCompletionsAtPosition (:47545:17)
   at Anonymous function (:52055:17)
   at simpleForwardCall (:51773:9)
   at forwardJSONCall (:51789:13)
   at forwardJSONCall (:51835:13)
   at getCompletionsAtPosition (:52054:13)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions