madskristensen / VuePack2017

A Visual Studio extension
Other
37 stars 14 forks source link

Prop starting with 'on' #24

Open darkdrew007 opened 5 years ago

darkdrew007 commented 5 years ago

Installed product versions

Description

In a single file vue component if you bind to a property starting with 'on' using the shortcut binding syntax ':' an exception is thrown when the file is opened. Also the regions within the Javascript portion of the file will not display the collapse code boxes. The component will compile correctly, the issue appears to cause incorrect behavior within the VS2017 editor window. This causes the problem: This will not cause the problem:

Steps to recreate

  1. Open a .vue file
  2. Add the following binding to any portion of the template markup :onMyProp="test"
  3. Save the file, close and reopen the file
  4. Visual Studio throw an exception
  5. Close the exception, notice you can no longer collapse the javascript regions

Current behavior

Throws exception and Javascript regions cannot be collapsed. File will compile and run correctly, only appears to be an issue within the VS2017 editor.