Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
infctr opened this issue Nov 16, 2018 · 0 comments

Comments

@infctr
Copy link

infctr commented Nov 16, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant