- Notifications
You must be signed in to change notification settings - Fork24
Commiteca919f
refactor: extract helper functions from monolithic activate() in extension.ts
- Extract setupRemoteSSHExtension() to configure remote SSH extensions- Extract initializeInfrastructure() to create storage and logger instances- Extract initializeRestClient() to setup REST API client- Extract setupTreeViews() to create workspace providers and tree views- Extract registerUriHandler() to handle vscode:// URIs (136 lines)- Improve test coverage from 39.71% to 71.02% for extension.ts- Add comprehensive tests for all extracted functions using TDD approach- Overall project coverage increased to 77.28%This refactoring improves code maintainability by breaking down the 400+ lineactivate() function into smaller, focused, testable functions.🤖 Generated with [Claude Code](https://claude.ai/code)Co-Authored-By: Claude <noreply@anthropic.com>1 parent6285043 commiteca919f
3 files changed
+664
-31
lines changedLines changed: 27 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
49 |
| - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
50 | 65 |
| |
51 | 66 |
| |
52 | 67 |
| |
| |||
59 | 74 |
| |
60 | 75 |
| |
61 | 76 |
| |
62 |
| - | |
63 |
| - | |
64 |
| - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
65 | 80 |
| |
66 | 81 |
| |
67 |
| - | |
| 82 | + | |
68 | 83 |
| |
69 | 84 |
| |
70 | 85 |
| |
71 |
| - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
72 | 92 |
| |
| 93 | + | |
73 | 94 |
| |
74 | 95 |
| |
75 | 96 |
| |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 |
| - | |
80 |
| - | |
|
0 commit comments
Comments
(0)