Skip to content

refactor: extract file watchers, notifications, and session from extension.ts#536

Merged
magnus-madsen merged 2 commits into
masterfrom
refactor/extract-extension-modules
Mar 28, 2026
Merged

refactor: extract file watchers, notifications, and session from extension.ts#536
magnus-madsen merged 2 commits into
masterfrom
refactor/extract-extension-modules

Conversation

@magnus-madsen
Copy link
Copy Markdown
Member

@magnus-madsen magnus-madsen commented Mar 28, 2026

Summary

  • Extract file system watching and reconciliation logic into client/src/lsp/fileWatchers.ts
  • Extract server-to-client notification handlers into client/src/lsp/notifications.ts
  • Extract session lifecycle orchestration into client/src/lsp/session.ts
  • Reduce extension.ts from ~480 lines to ~140 lines of pure activation wiring

Test plan

  • tsc --noEmit passes (client)
  • tsc -b passes (full project)
  • npm run build passes (esbuild bundle)
  • Existing integration tests pass (npm test)
  • Manual smoke test: extension activates, compiler starts, file watching works

🤖 Generated with Claude Code

magnus-madsen and others added 2 commits March 28, 2026 07:20
…nsion.ts

Move file system watching, server notification handling, and session
lifecycle management into dedicated modules under client/src/lsp/,
reducing extension.ts from ~480 lines to ~140 lines of activation wiring.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@magnus-madsen magnus-madsen merged commit 804e227 into master Mar 28, 2026
16 of 19 checks passed
@magnus-madsen magnus-madsen deleted the refactor/extract-extension-modules branch March 28, 2026 06:34
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.

1 participant