Skip to content

Add comments to explain QueryStatus check in ExecuteCommandAsync#12682

Closed
Copilot wants to merge 2 commits intodev/dawengie/FixRenameIntegrationTestfrom
copilot/sub-pr-12674
Closed

Add comments to explain QueryStatus check in ExecuteCommandAsync#12682
Copilot wants to merge 2 commits intodev/dawengie/FixRenameIntegrationTestfrom
copilot/sub-pr-12674

Conversation

Copy link
Contributor

Copilot AI commented Jan 14, 2026

Summary of the changes

Added explanatory comments to the ExecuteCommandAsync method in EditorInProcess_Commands.cs to clarify the QueryStatus check and retry logic.

The new code (added in #12674) was checking command status before execution but lacked comments explaining why. Added comments that:

  • Explain the OLECMD structure setup for status queries
  • Describe the retry loop that waits for command readiness (enabled + supported flags)
  • Note that this prevents COM exceptions during language server initialization
  • Clarify the final execution step

This addresses feedback from the parent PR review requesting better code documentation.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: davidwengier <754264+davidwengier@users.noreply.github.com>
Copilot AI changed the title [WIP] Add comments to improve clarity in integration test Add comments to explain QueryStatus check in ExecuteCommandAsync Jan 14, 2026
Copilot AI requested a review from davidwengier January 14, 2026 21:32
@davidwengier davidwengier deleted the copilot/sub-pr-12674 branch January 14, 2026 21:33
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.

2 participants