aspnet / Tooling

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

IntelliSense is not working after specifying a method argument using a @<text> tag #965

Open San4es opened 7 years ago

San4es commented 7 years ago

Developing my own Razor components (Html Helper extensions) with chaining syntax, I faced the issue with the IntelliSense not working after specifying a method argument using a @<text> tag:  

<h2>First popup</h2>
@(Html.MyPopup()
    .Content(@<text>Some content 1</text>) // IntelliSense is not working after this line
    .Title("Some title 1")
)
 
<h2>Second popup</h2>
@(Html.MyPopup()
    .Title("Some title 2")
    .Content(@<text>Some content 2</text>)
)

This issue can be reproduced in Visual Studio 2015 and Visual Studio 2017 RC. Both examples works fine in runtime.

I have prepared an sample project demonstrating this issue (see "Views/Home/Index.cshtml" file in attachment): IntellisenseIssue.zip

San4es commented 7 years ago

It should be noted that this issue is not reproduced in the MVC 5 application: MVC5.zip

mlorbetske commented 7 years ago

TFS Bug#378949