Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-296353: Incorrect code completion in Razor View

$
0
0
Reporter Werner Strydom (bloudraak) Werner Strydom (bloudraak)
Created Apr 20, 2012 2:32:49 AM
Updated Apr 24, 2012 9:13:16 PM
Priority Show-stopper
Type Bug
Fix versions 7.0 Preview
State Submitted
Assignee Slava Trenogin (derigel)
Subsystem Code Completion
Affected versions 6.1.1
Fixed in build No Fixed in build
Consider the following code:

@{
    ViewBag.Title = "Edit";
}

@helper FieldFor(Expression<Func<Model, string>> expression)
{
    
}

// Here

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)



    <p>
        <input type="submit" value="Save" class="btn btn-primary"/>
        @Html.ActionLink("Cancel", "Details", "Accounts", null, new {@class = "btn"})
    </p>
}


Place the cursor at the line after "// Here" and enter <h2>. Notice that when you enter the last ">", it jumps to the "<p>" tag. This is not expected. It was expected that pressing the last ">" would result in "<h2></h2>". If you remove the @helper, then repeat the procedure, the completion works as expected.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>