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
Open a .vue file
Add the following binding to any portion of the template markup :onMyProp="test"
Save the file, close and reopen the file
Visual Studio throw an exception
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.
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
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.