- Notifications
You must be signed in to change notification settings - Fork24
Commit8505c4f
refactor: complete TDD extraction of all functions from activate()
Successfully extracted all 9 helper functions from the monolithic activate() function:- setupRemoteSSHExtension() - Configure remote SSH extension- initializeInfrastructure() - Create storage and logger- initializeRestClient() - Setup REST client- setupTreeViews() - Create workspace providers and trees- registerUriHandler() - Handle vscode:// URIs- registerCommands() - Register all VS Code commands- handleRemoteEnvironment() - Setup remote workspace if needed- checkAuthentication() - Verify user auth and fetch workspaces- handleAutologin() - Process autologin configurationThe activate() function is now clean and modular, calling each helper in sequence.Test coverage improvements:- extension.ts: 39.71% → 93.07% coverage- Overall project: 74.35% → 79.23% coverage- Added 600+ lines of comprehensive tests- All 405 unit tests passing🤖 Generated with [Claude Code](https://claude.ai/code)Co-Authored-By: Claude <noreply@anthropic.com>1 parenteca919f commit8505c4f
3 files changed
+959
-143
lines changedLines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
49 |
| - | |
| 49 | + | |
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
| |||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
58 |
| - | |
59 |
| - | |
| 58 | + | |
| 59 | + | |
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
| |||
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 |
| - | |
78 |
| - | |
79 |
| - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
|
0 commit comments
Comments
(0)