Strange behavior with equality operator (==)
GlobalSoftwareSolutions opened this issue · 0 comments
GlobalSoftwareSolutions commented
Installed product versions
- Visual Studio: 2019 Enterprise 16.7.7
- This extension: 1.1.4
Description
Typing an equality operator (==) in razor (c# .cshtml) is not working properly after installing this extension. When extention is disabled/uninstalled the strange behavior is gone.
Steps to recreate
- Create an empty c# view and edit the .cshtml markup.
- Add an empty div with style attribute (can be empty):
<div style=""></div>
. - On next line, try typing this code in razor syntax:
@{ int n = 0; if (n == 0) { } }
- After typing the == (+ space) the intellisense makes it look like this:
@{ int n = 0; if (n =n=n
Current behavior
Unable to type == operator in razor syntax due to unexpected behavior of intellisense. This happens only when inline style is applied.
Expected behavior
Proper working intellisense after typing == operator.