Skip to content

typeof as a generic parameter breaks syntax highlighting in an arrow function as an object literal value #685

@infctr

Description

@infctr

TS and JS Grammar Extension version: 0.0.46 / latest

Code

const x = {
  success: (state, { payload }): IState =>
    R.compose<typeof payload, IState, IState>(
      R.merge<IState>(state),
      R.reduce(
        (acc, channel) =>
          setChannel(channel.id)(
            {
              data: omitStoreEntities(channel),
              status: Status.LOADED,
              error: null,
            },
            acc
          ),
        R.clone(initialState)
      )
    )(payload),
};

nov-16-2018 18-21-40

Changing arrow function to a function / method shorthand has broken syntax highlighting only on generic parameters. Happens only in built-in Monokai theme

code2

Not sure whether the issue should be opened in vscode repo addressing this very theme.

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