madskristensen/CssTools2019

Strange behavior with equality operator (==)

GlobalSoftwareSolutions opened this issue · 0 comments

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

  1. Create an empty c# view and edit the .cshtml markup.
  2. Add an empty div with style attribute (can be empty): <div style=""></div>.
  3. On next line, try typing this code in razor syntax: @{ int n = 0; if (n == 0) { } }
  4. 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.