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

Non-null assertion operator syntax highlighting error in class based SF-component #703

Closed
3 tasks done
d-n-x opened this issue Feb 20, 2018 · 1 comment
Closed
3 tasks done

Comments

@d-n-x
Copy link

d-n-x commented Feb 20, 2018

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

  • Platform: Windows 10
  • Vetur version: 0.11.7
  • VS Code version: 1.20.1

Problem

It seems like that the non-null assertion operator inside vue component works correctly within the TypeScript compiler but the syntax highlighting seems to be wrong.

https://i.imgur.com/7luF67C.jpg

Reproducible Case

Create a class in a single-file component and add a variable with the non-null assertion operator:

export default class Test extends Vue {
  @Prop() msg!: string; // '=' expected.
  @Prop() test?: number; // Working.
}
@HerringtonDarkholme
Copy link
Member

HerringtonDarkholme commented Feb 22, 2018

We will make a new release for this. Please wait patiently. #686

@octref octref closed this as completed Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants