Skip to content

Remove two stale IDE0060 suppressions - #16373

Merged
Jakub Jareš (nohwnd) merged 2 commits into
microsoft:mainfrom
nohwnd:nohwnd-remove-stale-ide0060-suppressions
Aug 18, 2026
Merged

Jakub Jareš (nohwnd) merged 2 commits into
microsoft:mainfrom
nohwnd:nohwnd-remove-stale-ide0060-suppressions

Conversation

@nohwnd

Copy link
Copy Markdown
Member

Implemented and committed Task 3 from microsoft/vstest#16367.

Deleted unused VersionAttribute, removed obsolete ConvertToAttachDebuggerInfo parameters and both TODO-backed IDE0060 suppressions, and added coverage for debugger fields, callback type, wire format, and negotiated version.

Evidence:

  • Release builds passed for PlatformAbstractions, CommunicationUtilities, and its unit-test project.
  • AttachDebugger tests passed: 31/31 on net11.0 and 31/31 on net481.
  • Worktree is clean and changes are committed.

🤖

Delete the unused VersionAttribute and remove obsolete parameters from the attach-debugger conversion. Cover payload propagation and negotiated callback serialization.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

🤖
Copilot AI lite review requested due to automatic review settings August 17, 2026 12:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements “Task 3” from issue #16367 by removing two stale IDE0060 suppressions and the underlying unused API surface in the VSTest communication layer, while adding unit coverage for the AttachDebugger wire message path with negotiated protocol versions.

Changes:

  • Removed the unused VersionAttribute (and its TODO-backed IDE0060 suppression) from PlatformAbstractions.
  • Simplified MessageConverter.ConvertToAttachDebuggerInfo by removing unused parameters and updating the AttachDebugger handling call site.
  • Added a unit test validating AttachDebugger conversion + callback serialization using the negotiated protocol version.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/TestRequestSenderTests.cs Adds AttachDebugger coverage for negotiated protocol version and payload-to-AttachDebuggerInfo mapping.
src/Microsoft.TestPlatform.PlatformAbstractions/VersionAttribute.cs Deletes an unused DEBUG-only attribute that only existed with an IDE0060 suppression/TODO.
src/Microsoft.TestPlatform.CommunicationUtilities/TestRequestSender.cs Removes unused parameters from AttachDebugger conversion and updates the message handler accordingly.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/Microsoft.TestPlatform.CommunicationUtilities/TestRequestSender.cs Outdated
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 17, 2026 16:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@nohwnd
Jakub Jareš (nohwnd) marked this pull request as ready for review August 17, 2026 16:56
@nohwnd
Jakub Jareš (nohwnd) marked this pull request as draft August 17, 2026 16:56
@nohwnd
Jakub Jareš (nohwnd) marked this pull request as ready for review August 18, 2026 09:15
@nohwnd
Jakub Jareš (nohwnd) enabled auto-merge (squash) August 18, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants