aspnet / Tooling

Issue tracker and info on Visual Studio tooling for ASP.NET
Other
256 stars 124 forks source link

C# Variables in Razor Style Blocks Break Intellisense #1006

Open NTaylorMullen opened 7 years ago

NTaylorMullen commented 7 years ago

From @RandyBuchholz on February 15, 2017 12:7

Issue

In a Razor page, using a variable inside a <style> block breaks intellisense.

Example

@{ var border = "1px solid #000"; }

<style>
    .border-single { border: @border }
</style>

This will cause all intellisense to quit working within <style></style>

Note

I posted this before, but with the changes in the repo process I didn't want it to get lost. I think this is a critical usability bug.

Copied from original issue: aspnet/Razor#1004

NTaylorMullen commented 7 years ago

From @Eilon on February 28, 2017 18:9

@NTaylorMullen does this seem like a Razor tooling thing that we own, or an issue in VS?