You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Address code review feedback: fix cursor position check, add WorkItem attributes, remove duplicate test
- Fix cursor position check to include end position (nameSpan.End instead of Contains)
- Add WorkItem attributes to all tests referencing issue #9747
- Add new test AddUsing_OnClick_CursorAtEnd to verify cursor at end of attribute name works
- Remove duplicate NoCodeAction_WhenNamespaceAlreadyPresent test (was identical to NoCodeAction_WhenBoundAttribute)
All tests pass (8/8 passing, 1 skipped with documented reason).
Co-authored-by: davidwengier <[email protected]>
Copy file name to clipboardExpand all lines: src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/CodeActions/Razor/UnboundDirectiveAttributeAddUsingCodeActionProvider.cs
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,8 @@ public Task<ImmutableArray<RazorVSInternalCodeAction>> ProvideAsync(RazorCodeAct
51
51
52
52
// Make sure the cursor is actually on the name part, since the attribute block is the whole attribute, including
Copy file name to clipboardExpand all lines: src/Razor/test/Microsoft.VisualStudioCode.RazorExtension.Test/Endpoints/Shared/CodeActions/UnboundDirectiveAttributeAddUsingTests.cs
0 commit comments