-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not put an equals and quotes when completing an xml attribute if present #72508
Do not put an equals and quotes when completing an xml attribute if present #72508
Conversation
.../CSharpTest/Completion/CompletionProviders/XmlDocumentationCommentCompletionProviderTests.cs
Show resolved
Hide resolved
...tures/VisualBasic/Portable/Completion/CompletionProviders/XmlDocCommentCompletionProvider.vb
Outdated
Show resolved
Hide resolved
src/Features/CSharp/Portable/Completion/CompletionProviders/XmlDocCommentCompletionProvider.cs
Outdated
Show resolved
Hide resolved
src/Features/Core/Portable/Completion/Providers/AbstractDocCommentCompletionProvider.cs
Outdated
Show resolved
Hide resolved
.../CSharpTest/Completion/CompletionProviders/XmlDocumentationCommentCompletionProviderTests.cs
Show resolved
Hide resolved
.../CSharpTest/Completion/CompletionProviders/XmlDocumentationCommentCompletionProviderTests.cs
Show resolved
Hide resolved
.../CSharpTest/Completion/CompletionProviders/XmlDocumentationCommentCompletionProviderTests.cs
Outdated
Show resolved
Hide resolved
src/EditorFeatures/Test2/IntelliSense/CSharpCompletionCommandHandlerTests_XmlDoc.vb
Show resolved
Hide resolved
src/EditorFeatures/Test2/IntelliSense/CSharpCompletionCommandHandlerTests_XmlDoc.vb
Outdated
Show resolved
Hide resolved
src/EditorFeatures/Test2/IntelliSense/CSharpCompletionCommandHandlerTests_XmlDoc.vb
Outdated
Show resolved
Hide resolved
src/EditorFeatures/Test2/IntelliSense/CSharpCompletionCommandHandlerTests_XmlDoc.vb
Outdated
Show resolved
Hide resolved
@CyrusNajmabadi Should be ready for another round of review |
@CyrusNajmabadi This one was ready for another round, should be very close to merge, but the CI is failing for another reason. |
src/Features/Core/Portable/Completion/Providers/AbstractDocCommentCompletionProvider.cs
Show resolved
Hide resolved
Thanks! |
@CyrusNajmabadi Seems the CI test is being flaky here (tried to run one that failed locally and it passed) |
@CyrusNajmabadi and CI failed again, I don't know why it behaves like this, I try to check the errors, but it doesn't help me much... |
it's not you. it's us :) |
Thanks! |
Closes #72259
To address this issue, this pr will check to see if there's an Equals token already next to the completion. If there is, we don't place the ="" and only replace the word meant to be completed.
To note about the VB change: it seems the completion on VB works differently and didn't supported this scheme of completion (I tried a unit test and it wasn't even something in the list). So this effectively leaves VB as is.