Skip to content

refactor: pass company ID in WebSocket code analysis requests - #3

Merged
firedragon9511 merged 2 commits into
mainfrom
refactor/pass-company-id-to-websocket
Sep 8, 2026
Merged

firedragon9511 merged 2 commits into
mainfrom
refactor/pass-company-id-to-websocket

Conversation

@firedragon9511

@firedragon9511 firedragon9511 commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Read the Company ID from the Visual Studio extension settings.
  • Send company_id as a numeric value in every analyze_code payload.
  • Include the Company ID in regular code analysis and autofix requests.
  • Validate that the configured Company ID is numeric before sending and return a clear error when it is missing or invalid.
  • Require an authenticated WebSocket connection before sending broker requests.
  • Detect authentication failures and trigger reconnection on the next operation.
  • Increase the extension version from 0.2.2 to 0.2.3.

New websocket analyze_code request format:

{
    "type": "analyze_code",
    "request_id": "...",
    "payload": {
      "code": "...",
      "language": "...",
      "company_id" : "..."
    }
  }

Change type:

  • Feature
  • Fix
  • Refactor
  • Docs
  • Chore

Checklist

  • Built the Visual Studio extension with MSBuild.
  • Confirmed company_id is serialized as a JSON number.
  • Updated both code analysis and autofix request payloads.
  • Updated README if behavior changed.
  • Confirmed the generated VSIX builds successfully.
  • Confirmed protocol alignment with ide-broker.****

Test

image image

@firedragon9511 firedragon9511 self-assigned this Sep 1, 2026
@firedragon9511
firedragon9511 merged commit d320904 into main Sep 8, 2026
1 check passed
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