Skip to content

Type aliases without semi-colon break syntax highlighting  #841

@samholmes

Description

@samholmes
  • VSCode Version: 1.50.1
  • OS Version: macOS Catalina Version 10.15.6 (19G73)

Steps to Reproduce:

  1. Open a .ts file with the following contents:
type Foo = string

(async () => {
	let foo: string

	try {
		foo = "hello"
	} catch (error) {
		// Nothing
	}
})()

Results: Syntax highlighting breaks without a semi-colon inserted. See screenshot:

Screen Shot 2020-11-04 at 9 34 04 PM

Syntax highlighting is not broken if we add a semi-colon to the type declaration:

Screen Shot 2020-11-04 at 9 34 32 PM

Expected: Syntax highlighting shouldn't break when omitting the semi-colon.

Does this issue occur when all extensions are disabled?: Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions