Reporter | 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:
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.
@{ 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.