driftdetect-vscode 0.9.0 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +21 -46
- package/.turbo/turbo-build.log +0 -4
- package/.turbo/turbo-test.log +0 -138
- package/LICENSE +0 -121
- package/dist/activation/activation-controller.d.ts +0 -61
- package/dist/activation/activation-controller.d.ts.map +0 -1
- package/dist/activation/activation-controller.js +0 -235
- package/dist/activation/activation-controller.js.map +0 -1
- package/dist/activation/activation-phases.d.ts +0 -28
- package/dist/activation/activation-phases.d.ts.map +0 -1
- package/dist/activation/activation-phases.js +0 -80
- package/dist/activation/activation-phases.js.map +0 -1
- package/dist/activation/index.d.ts +0 -6
- package/dist/activation/index.d.ts.map +0 -1
- package/dist/activation/index.js +0 -6
- package/dist/activation/index.js.map +0 -1
- package/dist/client/connection-config.d.ts +0 -50
- package/dist/client/connection-config.d.ts.map +0 -1
- package/dist/client/connection-config.js +0 -56
- package/dist/client/connection-config.js.map +0 -1
- package/dist/client/connection-manager.d.ts +0 -70
- package/dist/client/connection-manager.d.ts.map +0 -1
- package/dist/client/connection-manager.js +0 -214
- package/dist/client/connection-manager.js.map +0 -1
- package/dist/client/index.d.ts +0 -8
- package/dist/client/index.d.ts.map +0 -1
- package/dist/client/index.js +0 -8
- package/dist/client/index.js.map +0 -1
- package/dist/client/language-client-factory.d.ts +0 -29
- package/dist/client/language-client-factory.d.ts.map +0 -1
- package/dist/client/language-client-factory.js +0 -76
- package/dist/client/language-client-factory.js.map +0 -1
- package/dist/client/request-middleware.d.ts +0 -38
- package/dist/client/request-middleware.d.ts.map +0 -1
- package/dist/client/request-middleware.js +0 -85
- package/dist/client/request-middleware.js.map +0 -1
- package/dist/commands/command-definitions.d.ts +0 -53
- package/dist/commands/command-definitions.d.ts.map +0 -1
- package/dist/commands/command-definitions.js +0 -212
- package/dist/commands/command-definitions.js.map +0 -1
- package/dist/commands/command-router.d.ts +0 -80
- package/dist/commands/command-router.d.ts.map +0 -1
- package/dist/commands/command-router.js +0 -127
- package/dist/commands/command-router.js.map +0 -1
- package/dist/commands/handlers/connection-handlers.d.ts +0 -14
- package/dist/commands/handlers/connection-handlers.d.ts.map +0 -1
- package/dist/commands/handlers/connection-handlers.js +0 -57
- package/dist/commands/handlers/connection-handlers.js.map +0 -1
- package/dist/commands/handlers/constants-handlers.d.ts +0 -11
- package/dist/commands/handlers/constants-handlers.d.ts.map +0 -1
- package/dist/commands/handlers/constants-handlers.js +0 -84
- package/dist/commands/handlers/constants-handlers.js.map +0 -1
- package/dist/commands/handlers/index.d.ts +0 -10
- package/dist/commands/handlers/index.d.ts.map +0 -1
- package/dist/commands/handlers/index.js +0 -10
- package/dist/commands/handlers/index.js.map +0 -1
- package/dist/commands/handlers/pattern-handlers.d.ts +0 -13
- package/dist/commands/handlers/pattern-handlers.d.ts.map +0 -1
- package/dist/commands/handlers/pattern-handlers.js +0 -127
- package/dist/commands/handlers/pattern-handlers.js.map +0 -1
- package/dist/commands/handlers/scan-handlers.d.ts +0 -15
- package/dist/commands/handlers/scan-handlers.d.ts.map +0 -1
- package/dist/commands/handlers/scan-handlers.js +0 -74
- package/dist/commands/handlers/scan-handlers.js.map +0 -1
- package/dist/commands/handlers/ui-handlers.d.ts +0 -12
- package/dist/commands/handlers/ui-handlers.d.ts.map +0 -1
- package/dist/commands/handlers/ui-handlers.js +0 -74
- package/dist/commands/handlers/ui-handlers.js.map +0 -1
- package/dist/commands/handlers/violation-handlers.d.ts +0 -13
- package/dist/commands/handlers/violation-handlers.d.ts.map +0 -1
- package/dist/commands/handlers/violation-handlers.js +0 -76
- package/dist/commands/handlers/violation-handlers.js.map +0 -1
- package/dist/commands/index.d.ts +0 -7
- package/dist/commands/index.d.ts.map +0 -1
- package/dist/commands/index.js +0 -7
- package/dist/commands/index.js.map +0 -1
- package/dist/commands/middleware/connection-check-middleware.d.ts +0 -12
- package/dist/commands/middleware/connection-check-middleware.d.ts.map +0 -1
- package/dist/commands/middleware/connection-check-middleware.js +0 -34
- package/dist/commands/middleware/connection-check-middleware.js.map +0 -1
- package/dist/commands/middleware/index.d.ts +0 -7
- package/dist/commands/middleware/index.d.ts.map +0 -1
- package/dist/commands/middleware/index.js +0 -7
- package/dist/commands/middleware/index.js.map +0 -1
- package/dist/commands/middleware/logging-middleware.d.ts +0 -12
- package/dist/commands/middleware/logging-middleware.d.ts.map +0 -1
- package/dist/commands/middleware/logging-middleware.js +0 -24
- package/dist/commands/middleware/logging-middleware.js.map +0 -1
- package/dist/commands/middleware/telemetry-middleware.d.ts +0 -22
- package/dist/commands/middleware/telemetry-middleware.d.ts.map +0 -1
- package/dist/commands/middleware/telemetry-middleware.js +0 -30
- package/dist/commands/middleware/telemetry-middleware.js.map +0 -1
- package/dist/config/config-manager.d.ts +0 -53
- package/dist/config/config-manager.d.ts.map +0 -1
- package/dist/config/config-manager.js +0 -178
- package/dist/config/config-manager.js.map +0 -1
- package/dist/config/defaults.d.ts +0 -11
- package/dist/config/defaults.d.ts.map +0 -1
- package/dist/config/defaults.js +0 -43
- package/dist/config/defaults.js.map +0 -1
- package/dist/config/index.d.ts +0 -7
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js +0 -7
- package/dist/config/index.js.map +0 -1
- package/dist/config/validator.d.ts +0 -22
- package/dist/config/validator.d.ts.map +0 -1
- package/dist/config/validator.js +0 -93
- package/dist/config/validator.js.map +0 -1
- package/dist/extension.d.ts +0 -32
- package/dist/extension.d.ts.map +0 -1
- package/dist/extension.js +0 -50
- package/dist/extension.js.map +0 -1
- package/dist/infrastructure/disposable-manager.d.ts +0 -43
- package/dist/infrastructure/disposable-manager.d.ts.map +0 -1
- package/dist/infrastructure/disposable-manager.js +0 -75
- package/dist/infrastructure/disposable-manager.js.map +0 -1
- package/dist/infrastructure/event-bus.d.ts +0 -85
- package/dist/infrastructure/event-bus.d.ts.map +0 -1
- package/dist/infrastructure/event-bus.js +0 -74
- package/dist/infrastructure/event-bus.js.map +0 -1
- package/dist/infrastructure/index.d.ts +0 -10
- package/dist/infrastructure/index.d.ts.map +0 -1
- package/dist/infrastructure/index.js +0 -10
- package/dist/infrastructure/index.js.map +0 -1
- package/dist/infrastructure/logger.d.ts +0 -37
- package/dist/infrastructure/logger.d.ts.map +0 -1
- package/dist/infrastructure/logger.js +0 -86
- package/dist/infrastructure/logger.js.map +0 -1
- package/dist/infrastructure/service-container.d.ts +0 -68
- package/dist/infrastructure/service-container.d.ts.map +0 -1
- package/dist/infrastructure/service-container.js +0 -94
- package/dist/infrastructure/service-container.js.map +0 -1
- package/dist/state/index.d.ts +0 -7
- package/dist/state/index.d.ts.map +0 -1
- package/dist/state/index.js +0 -7
- package/dist/state/index.js.map +0 -1
- package/dist/state/initial-state.d.ts +0 -11
- package/dist/state/initial-state.d.ts.map +0 -1
- package/dist/state/initial-state.js +0 -58
- package/dist/state/initial-state.js.map +0 -1
- package/dist/state/selectors.d.ts +0 -41
- package/dist/state/selectors.d.ts.map +0 -1
- package/dist/state/selectors.js +0 -61
- package/dist/state/selectors.js.map +0 -1
- package/dist/state/state-manager.d.ts +0 -54
- package/dist/state/state-manager.d.ts.map +0 -1
- package/dist/state/state-manager.js +0 -166
- package/dist/state/state-manager.js.map +0 -1
- package/dist/types/config-types.d.ts +0 -69
- package/dist/types/config-types.d.ts.map +0 -1
- package/dist/types/config-types.js +0 -5
- package/dist/types/config-types.js.map +0 -1
- package/dist/types/extension-types.d.ts +0 -45
- package/dist/types/extension-types.d.ts.map +0 -1
- package/dist/types/extension-types.js +0 -5
- package/dist/types/extension-types.js.map +0 -1
- package/dist/types/index.d.ts +0 -12
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -12
- package/dist/types/index.js.map +0 -1
- package/dist/types/lsp-types.d.ts +0 -70
- package/dist/types/lsp-types.d.ts.map +0 -1
- package/dist/types/lsp-types.js +0 -5
- package/dist/types/lsp-types.js.map +0 -1
- package/dist/types/state-types.d.ts +0 -82
- package/dist/types/state-types.d.ts.map +0 -1
- package/dist/types/state-types.js +0 -5
- package/dist/types/state-types.js.map +0 -1
- package/dist/types/vscode-types.d.ts +0 -36
- package/dist/types/vscode-types.d.ts.map +0 -1
- package/dist/types/vscode-types.js +0 -7
- package/dist/types/vscode-types.js.map +0 -1
- package/dist/ui/decorations/decoration-controller.d.ts +0 -45
- package/dist/ui/decorations/decoration-controller.d.ts.map +0 -1
- package/dist/ui/decorations/decoration-controller.js +0 -198
- package/dist/ui/decorations/decoration-controller.js.map +0 -1
- package/dist/ui/decorations/decoration-types.d.ts +0 -28
- package/dist/ui/decorations/decoration-types.d.ts.map +0 -1
- package/dist/ui/decorations/decoration-types.js +0 -98
- package/dist/ui/decorations/decoration-types.js.map +0 -1
- package/dist/ui/decorations/index.d.ts +0 -7
- package/dist/ui/decorations/index.d.ts.map +0 -1
- package/dist/ui/decorations/index.js +0 -6
- package/dist/ui/decorations/index.js.map +0 -1
- package/dist/ui/index.d.ts +0 -7
- package/dist/ui/index.d.ts.map +0 -1
- package/dist/ui/index.js +0 -7
- package/dist/ui/index.js.map +0 -1
- package/dist/ui/notifications/index.d.ts +0 -5
- package/dist/ui/notifications/index.d.ts.map +0 -1
- package/dist/ui/notifications/index.js +0 -5
- package/dist/ui/notifications/index.js.map +0 -1
- package/dist/ui/notifications/notification-service.d.ts +0 -66
- package/dist/ui/notifications/notification-service.d.ts.map +0 -1
- package/dist/ui/notifications/notification-service.js +0 -103
- package/dist/ui/notifications/notification-service.js.map +0 -1
- package/dist/ui/status-bar/index.d.ts +0 -6
- package/dist/ui/status-bar/index.d.ts.map +0 -1
- package/dist/ui/status-bar/index.js +0 -6
- package/dist/ui/status-bar/index.js.map +0 -1
- package/dist/ui/status-bar/status-bar-controller.d.ts +0 -37
- package/dist/ui/status-bar/status-bar-controller.d.ts.map +0 -1
- package/dist/ui/status-bar/status-bar-controller.js +0 -111
- package/dist/ui/status-bar/status-bar-controller.js.map +0 -1
- package/dist/ui/status-bar/status-bar-modes.d.ts +0 -26
- package/dist/ui/status-bar/status-bar-modes.d.ts.map +0 -1
- package/dist/ui/status-bar/status-bar-modes.js +0 -97
- package/dist/ui/status-bar/status-bar-modes.js.map +0 -1
- package/dist/views/base-tree-provider.d.ts +0 -74
- package/dist/views/base-tree-provider.d.ts.map +0 -1
- package/dist/views/base-tree-provider.js +0 -95
- package/dist/views/base-tree-provider.js.map +0 -1
- package/dist/views/constants-tree-provider.d.ts +0 -112
- package/dist/views/constants-tree-provider.d.ts.map +0 -1
- package/dist/views/constants-tree-provider.js +0 -344
- package/dist/views/constants-tree-provider.js.map +0 -1
- package/dist/views/files-tree-provider.d.ts +0 -37
- package/dist/views/files-tree-provider.d.ts.map +0 -1
- package/dist/views/files-tree-provider.js +0 -98
- package/dist/views/files-tree-provider.js.map +0 -1
- package/dist/views/index.d.ts +0 -10
- package/dist/views/index.d.ts.map +0 -1
- package/dist/views/index.js +0 -10
- package/dist/views/index.js.map +0 -1
- package/dist/views/patterns-tree-provider.d.ts +0 -39
- package/dist/views/patterns-tree-provider.d.ts.map +0 -1
- package/dist/views/patterns-tree-provider.js +0 -139
- package/dist/views/patterns-tree-provider.js.map +0 -1
- package/dist/views/violations-tree-provider.d.ts +0 -46
- package/dist/views/violations-tree-provider.d.ts.map +0 -1
- package/dist/views/violations-tree-provider.js +0 -158
- package/dist/views/violations-tree-provider.js.map +0 -1
- package/dist/webview/index.d.ts +0 -7
- package/dist/webview/index.d.ts.map +0 -1
- package/dist/webview/index.js +0 -7
- package/dist/webview/index.js.map +0 -1
- package/dist/webview/webview-manager.d.ts +0 -57
- package/dist/webview/webview-manager.d.ts.map +0 -1
- package/dist/webview/webview-manager.js +0 -167
- package/dist/webview/webview-manager.js.map +0 -1
- package/tsconfig.tsbuildinfo +0 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "driftdetect-vscode",
|
|
3
3
|
"displayName": "Drift - Architectural Drift Detection",
|
|
4
4
|
"description": "Learn your codebase patterns and enforce consistency. Pattern detection, call graph analysis, security visualization, and MCP integration for AI agents. Supports TypeScript, Python, C#, Java, PHP.",
|
|
5
|
-
"version": "0.9.
|
|
5
|
+
"version": "0.9.3",
|
|
6
6
|
"publisher": "driftdetect",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"icon": "resources/drift-icon.png",
|
|
@@ -150,19 +150,13 @@
|
|
|
150
150
|
},
|
|
151
151
|
"drift.server.args": {
|
|
152
152
|
"type": "array",
|
|
153
|
-
"items": {
|
|
154
|
-
"type": "string"
|
|
155
|
-
},
|
|
153
|
+
"items": { "type": "string" },
|
|
156
154
|
"default": [],
|
|
157
155
|
"description": "Additional arguments to pass to the LSP server"
|
|
158
156
|
},
|
|
159
157
|
"drift.server.trace": {
|
|
160
158
|
"type": "string",
|
|
161
|
-
"enum": [
|
|
162
|
-
"off",
|
|
163
|
-
"messages",
|
|
164
|
-
"verbose"
|
|
165
|
-
],
|
|
159
|
+
"enum": ["off", "messages", "verbose"],
|
|
166
160
|
"default": "off",
|
|
167
161
|
"description": "Trace communication with the Drift server"
|
|
168
162
|
},
|
|
@@ -184,14 +178,8 @@
|
|
|
184
178
|
},
|
|
185
179
|
"drift.scan.excludePatterns": {
|
|
186
180
|
"type": "array",
|
|
187
|
-
"items": {
|
|
188
|
-
|
|
189
|
-
},
|
|
190
|
-
"default": [
|
|
191
|
-
"**/node_modules/**",
|
|
192
|
-
"**/dist/**",
|
|
193
|
-
"**/.git/**"
|
|
194
|
-
],
|
|
181
|
+
"items": { "type": "string" },
|
|
182
|
+
"default": ["**/node_modules/**", "**/dist/**", "**/.git/**"],
|
|
195
183
|
"description": "Glob patterns to exclude from scanning"
|
|
196
184
|
},
|
|
197
185
|
"drift.display.showStatusBar": {
|
|
@@ -213,17 +201,9 @@
|
|
|
213
201
|
"type": "array",
|
|
214
202
|
"items": {
|
|
215
203
|
"type": "string",
|
|
216
|
-
"enum": [
|
|
217
|
-
"error",
|
|
218
|
-
"warning",
|
|
219
|
-
"info",
|
|
220
|
-
"hint"
|
|
221
|
-
]
|
|
204
|
+
"enum": ["error", "warning", "info", "hint"]
|
|
222
205
|
},
|
|
223
|
-
"default": [
|
|
224
|
-
"error",
|
|
225
|
-
"warning"
|
|
226
|
-
],
|
|
206
|
+
"default": ["error", "warning"],
|
|
227
207
|
"description": "Severity levels to display"
|
|
228
208
|
},
|
|
229
209
|
"drift.ai.enabled": {
|
|
@@ -233,12 +213,7 @@
|
|
|
233
213
|
},
|
|
234
214
|
"drift.ai.provider": {
|
|
235
215
|
"type": "string",
|
|
236
|
-
"enum": [
|
|
237
|
-
"openai",
|
|
238
|
-
"anthropic",
|
|
239
|
-
"ollama",
|
|
240
|
-
"none"
|
|
241
|
-
],
|
|
216
|
+
"enum": ["openai", "anthropic", "ollama", "none"],
|
|
242
217
|
"default": "none",
|
|
243
218
|
"description": "AI provider for explanations and fixes"
|
|
244
219
|
},
|
|
@@ -377,18 +352,6 @@
|
|
|
377
352
|
}
|
|
378
353
|
]
|
|
379
354
|
},
|
|
380
|
-
"dependencies": {
|
|
381
|
-
"driftdetect-lsp": "^0.8.1",
|
|
382
|
-
"vscode-languageclient": "^9.0.1"
|
|
383
|
-
},
|
|
384
|
-
"devDependencies": {
|
|
385
|
-
"@types/node": "^20.10.0",
|
|
386
|
-
"@types/vscode": "^1.85.0",
|
|
387
|
-
"@vitest/coverage-v8": "^1.0.0",
|
|
388
|
-
"@vscode/vsce": "^2.22.0",
|
|
389
|
-
"typescript": "^5.3.0",
|
|
390
|
-
"vitest": "^1.0.0"
|
|
391
|
-
},
|
|
392
355
|
"scripts": {
|
|
393
356
|
"build": "tsc -p tsconfig.json",
|
|
394
357
|
"clean": "rm -rf dist",
|
|
@@ -401,5 +364,17 @@
|
|
|
401
364
|
"typecheck": "tsc --noEmit",
|
|
402
365
|
"vscode:prepublish": "pnpm run build",
|
|
403
366
|
"package": "vsce package --no-dependencies"
|
|
367
|
+
},
|
|
368
|
+
"dependencies": {
|
|
369
|
+
"driftdetect-lsp": "^0.8.1",
|
|
370
|
+
"vscode-languageclient": "^9.0.1"
|
|
371
|
+
},
|
|
372
|
+
"devDependencies": {
|
|
373
|
+
"@types/node": "^20.10.0",
|
|
374
|
+
"@types/vscode": "^1.85.0",
|
|
375
|
+
"@vitest/coverage-v8": "^1.0.0",
|
|
376
|
+
"@vscode/vsce": "^2.22.0",
|
|
377
|
+
"typescript": "^5.3.0",
|
|
378
|
+
"vitest": "^1.0.0"
|
|
404
379
|
}
|
|
405
|
-
}
|
|
380
|
+
}
|
package/.turbo/turbo-build.log
DELETED
package/.turbo/turbo-test.log
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> driftdetect-vscode@0.8.2 test /Users/geoffreyfernald/drift/drift/packages/vscode
|
|
3
|
-
> vitest run
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
[1;1H[0J
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
[1;1H[0J
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
[1;1H[0J
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
[1;1H[0J
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
[1;1H[0J
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
[1;1H[0J
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
[1;1H[0J
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
[1;1H[0J
|
|
110
|
-
[7m[1m[36m RUN [39m[22m[27m [36mv1.6.1[39m [90m/Users/geoffreyfernald/drift/drift/packages/vscode[39m
|
|
111
|
-
|
|
112
|
-
[46m[@drift/core] Config[49m
|
|
113
|
-
[2minclude: [22m[33m**/*.{test,spec}.{ts,tsx}[2m, [22msrc/**/*.{test,spec}.ts[2m, [22mtests/**/*.{test,spec}.ts[39m
|
|
114
|
-
[2mexclude: [22m[33m**/node_modules/**[2m, [22m**/dist/**[2m, [22m**/.turbo/**[39m
|
|
115
|
-
[46m[@drift/detectors] Config[49m
|
|
116
|
-
[2minclude: [22m[33m**/*.{test,spec}.{ts,tsx}[2m, [22msrc/**/*.{test,spec}.ts[2m, [22mtests/**/*.{test,spec}.ts[39m
|
|
117
|
-
[2mexclude: [22m[33m**/node_modules/**[2m, [22m**/dist/**[2m, [22m**/.turbo/**[39m
|
|
118
|
-
[46m[@drift/lsp] Config[49m
|
|
119
|
-
[2minclude: [22m[33m**/*.{test,spec}.{ts,tsx}[2m, [22msrc/**/*.{test,spec}.ts[2m, [22mtests/**/*.{test,spec}.ts[39m
|
|
120
|
-
[2mexclude: [22m[33m**/node_modules/**[2m, [22m**/dist/**[2m, [22m**/.turbo/**[39m
|
|
121
|
-
[46m[@drift/cli] Config[49m
|
|
122
|
-
[2minclude: [22m[33m**/*.{test,spec}.{ts,tsx}[2m, [22msrc/**/*.{test,spec}.ts[2m, [22mtests/**/*.{test,spec}.ts[39m
|
|
123
|
-
[2mexclude: [22m[33m**/node_modules/**[2m, [22m**/dist/**[2m, [22m**/.turbo/**[39m
|
|
124
|
-
[46m[@drift/ai] Config[49m
|
|
125
|
-
[2minclude: [22m[33m**/*.{test,spec}.{ts,tsx}[2m, [22msrc/**/*.{test,spec}.ts[2m, [22mtests/**/*.{test,spec}.ts[39m
|
|
126
|
-
[2mexclude: [22m[33m**/node_modules/**[2m, [22m**/dist/**[2m, [22m**/.turbo/**[39m
|
|
127
|
-
[46m[@drift/vscode] Config[49m
|
|
128
|
-
[2minclude: [22m[33m**/*.{test,spec}.{ts,tsx}[2m, [22msrc/**/*.{test,spec}.ts[2m, [22mtests/**/*.{test,spec}.ts[39m
|
|
129
|
-
[2mexclude: [22m[33m**/node_modules/**[2m, [22m**/dist/**[2m, [22m**/.turbo/**[39m
|
|
130
|
-
[46m[@drift/dashboard] Config[49m
|
|
131
|
-
[2minclude: [22m[33m**/*.{test,spec}.{ts,tsx}[2m, [22msrc/**/*.{test,spec}.ts[2m, [22msrc/**/*.{test,spec}.tsx[2m, [22mtests/**/*.{test,spec}.ts[39m
|
|
132
|
-
[2mexclude: [22m[33m**/node_modules/**[2m, [22m**/dist/**[2m, [22m**/.turbo/**[39m
|
|
133
|
-
[46m[@drift/mcp] Config[49m
|
|
134
|
-
[2minclude: [22m[33m**/*.{test,spec}.{ts,tsx}[2m, [22msrc/**/*.{test,spec}.ts[2m, [22mtests/**/*.{test,spec}.ts[39m
|
|
135
|
-
[2mexclude: [22m[33m**/node_modules/**[2m, [22m**/dist/**[2m, [22m**/.turbo/**[39m
|
|
136
|
-
[2mwatch exclude: [22m[33m**/node_modules/**[2m, [22m**/dist/**[39m
|
|
137
|
-
No test files found, exiting with code 0
|
|
138
|
-
|
package/LICENSE
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work.
|
|
38
|
-
|
|
39
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
40
|
-
form, that is based on (or derived from) the Work and for which the
|
|
41
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
42
|
-
represent, as a whole, an original work of authorship.
|
|
43
|
-
|
|
44
|
-
"Contribution" shall mean any work of authorship, including
|
|
45
|
-
the original version of the Work and any modifications or additions
|
|
46
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
47
|
-
submitted to the Licensor for inclusion in the Work by the copyright owner.
|
|
48
|
-
|
|
49
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
50
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
51
|
-
subsequently incorporated within the Work.
|
|
52
|
-
|
|
53
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
54
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
55
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
56
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
57
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
58
|
-
Work and such Derivative Works in Source or Object form.
|
|
59
|
-
|
|
60
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
61
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
62
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
63
|
-
patent license to make, have made, use, offer to sell, sell, import,
|
|
64
|
-
and otherwise transfer the Work.
|
|
65
|
-
|
|
66
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
67
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
68
|
-
modifications, and in Source or Object form, provided that You
|
|
69
|
-
meet the following conditions:
|
|
70
|
-
|
|
71
|
-
(a) You must give any other recipients of the Work or
|
|
72
|
-
Derivative Works a copy of this License; and
|
|
73
|
-
|
|
74
|
-
(b) You must cause any modified files to carry prominent notices
|
|
75
|
-
stating that You changed the files; and
|
|
76
|
-
|
|
77
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
78
|
-
that You distribute, all copyright, patent, trademark, and
|
|
79
|
-
attribution notices from the Source form of the Work; and
|
|
80
|
-
|
|
81
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
82
|
-
distribution, then any Derivative Works that You distribute must
|
|
83
|
-
include a readable copy of the attribution notices contained
|
|
84
|
-
within such NOTICE file.
|
|
85
|
-
|
|
86
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
87
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
88
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
89
|
-
this License, without any additional terms or conditions.
|
|
90
|
-
|
|
91
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
92
|
-
names, trademarks, service marks, or product names of the Licensor.
|
|
93
|
-
|
|
94
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
95
|
-
agreed to in writing, Licensor provides the Work on an "AS IS" BASIS,
|
|
96
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.
|
|
97
|
-
|
|
98
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
99
|
-
shall any Contributor be liable to You for damages, including any
|
|
100
|
-
direct, indirect, special, incidental, or consequential damages.
|
|
101
|
-
|
|
102
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
103
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
104
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
105
|
-
or other liability obligations.
|
|
106
|
-
|
|
107
|
-
END OF TERMS AND CONDITIONS
|
|
108
|
-
|
|
109
|
-
Copyright 2025 Geoffrey Fernald
|
|
110
|
-
|
|
111
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
112
|
-
you may not use this file except in compliance with the License.
|
|
113
|
-
You may obtain a copy of the License at
|
|
114
|
-
|
|
115
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
116
|
-
|
|
117
|
-
Unless required by applicable law or agreed to in writing, software
|
|
118
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
119
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
120
|
-
See the License for the specific language governing permissions and
|
|
121
|
-
limitations under the License.
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ActivationController - Extension lifecycle orchestrator
|
|
3
|
-
*
|
|
4
|
-
* Single responsibility: Orchestrate phased extension activation.
|
|
5
|
-
*/
|
|
6
|
-
import * as vscode from 'vscode';
|
|
7
|
-
/**
|
|
8
|
-
* Phase timing data
|
|
9
|
-
*/
|
|
10
|
-
interface PhaseTiming {
|
|
11
|
-
name: string;
|
|
12
|
-
duration: number;
|
|
13
|
-
success: boolean;
|
|
14
|
-
error?: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Activation controller
|
|
18
|
-
*/
|
|
19
|
-
export declare class ActivationController implements vscode.Disposable {
|
|
20
|
-
private readonly context;
|
|
21
|
-
private readonly disposables;
|
|
22
|
-
private readonly services;
|
|
23
|
-
private readonly phaseTimings;
|
|
24
|
-
private activated;
|
|
25
|
-
constructor(context: vscode.ExtensionContext);
|
|
26
|
-
/**
|
|
27
|
-
* Activate the extension
|
|
28
|
-
*/
|
|
29
|
-
activate(): Promise<void>;
|
|
30
|
-
/**
|
|
31
|
-
* Deactivate the extension
|
|
32
|
-
*/
|
|
33
|
-
deactivate(): Promise<void>;
|
|
34
|
-
/**
|
|
35
|
-
* Dispose resources
|
|
36
|
-
*/
|
|
37
|
-
dispose(): void;
|
|
38
|
-
/**
|
|
39
|
-
* Get phase timings for telemetry
|
|
40
|
-
*/
|
|
41
|
-
getPhaseTimings(): PhaseTiming[];
|
|
42
|
-
private runImmediatePhase;
|
|
43
|
-
private runDeferredPhase;
|
|
44
|
-
private runPhase;
|
|
45
|
-
private initializePhase;
|
|
46
|
-
private initializeInfrastructure;
|
|
47
|
-
private initializeState;
|
|
48
|
-
private initializeConfig;
|
|
49
|
-
private initializeStatusBar;
|
|
50
|
-
private initializeConnection;
|
|
51
|
-
private initializeCommands;
|
|
52
|
-
private initializeDecorations;
|
|
53
|
-
private registerLazyProviders;
|
|
54
|
-
private getLogger;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Factory function for creating activation controller
|
|
58
|
-
*/
|
|
59
|
-
export declare function createActivationController(context: vscode.ExtensionContext): ActivationController;
|
|
60
|
-
export {};
|
|
61
|
-
//# sourceMappingURL=activation-controller.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"activation-controller.d.ts","sourceRoot":"","sources":["../../src/activation/activation-controller.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAiCjC;;GAEG;AACH,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,qBAAa,oBAAqB,YAAW,MAAM,CAAC,UAAU;IAMhD,OAAO,CAAC,QAAQ,CAAC,OAAO;IALpC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAoB;IAChD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmB;IAC5C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAqB;IAClD,OAAO,CAAC,SAAS,CAAS;gBAEG,OAAO,EAAE,MAAM,CAAC,gBAAgB;IAK7D;;OAEG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IA6B/B;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAiBjC;;OAEG;IACH,OAAO,IAAI,IAAI;IAIf;;OAEG;IACH,eAAe,IAAI,WAAW,EAAE;YAIlB,iBAAiB;YAQjB,gBAAgB;YAWhB,QAAQ;YAsBR,eAAe;YA0Bf,wBAAwB;YAcxB,eAAe;YAQf,gBAAgB;YAQhB,mBAAmB;YASnB,oBAAoB;YA2BpB,kBAAkB;YA4BlB,qBAAqB;IAUnC,OAAO,CAAC,qBAAqB;IAO7B,OAAO,CAAC,SAAS;CAGlB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,MAAM,CAAC,gBAAgB,GAC/B,oBAAoB,CAEtB"}
|
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ActivationController - Extension lifecycle orchestrator
|
|
3
|
-
*
|
|
4
|
-
* Single responsibility: Orchestrate phased extension activation.
|
|
5
|
-
*/
|
|
6
|
-
import { getPhasesByType } from './activation-phases.js';
|
|
7
|
-
import { createConnectionManager } from '../client/index.js';
|
|
8
|
-
import { createCommandRouter } from '../commands/command-router.js';
|
|
9
|
-
import { createConnectionHandlers, createScanHandlers, createPatternHandlers, createViolationHandlers, createUIHandlers, } from '../commands/handlers/index.js';
|
|
10
|
-
import { createLoggingMiddleware, createConnectionCheckMiddleware, } from '../commands/middleware/index.js';
|
|
11
|
-
import { createConfigManager } from '../config/index.js';
|
|
12
|
-
import { createLogger, createDisposableManager, createServiceContainer, createEventBus, ServiceKeys, } from '../infrastructure/index.js';
|
|
13
|
-
import { createStateManager } from '../state/index.js';
|
|
14
|
-
import { createDecorationController } from '../ui/decorations/index.js';
|
|
15
|
-
import { createNotificationService } from '../ui/notifications/index.js';
|
|
16
|
-
import { createStatusBar } from '../ui/status-bar/index.js';
|
|
17
|
-
/**
|
|
18
|
-
* Activation controller
|
|
19
|
-
*/
|
|
20
|
-
export class ActivationController {
|
|
21
|
-
context;
|
|
22
|
-
disposables;
|
|
23
|
-
services;
|
|
24
|
-
phaseTimings = [];
|
|
25
|
-
activated = false;
|
|
26
|
-
constructor(context) {
|
|
27
|
-
this.context = context;
|
|
28
|
-
this.disposables = createDisposableManager();
|
|
29
|
-
this.services = createServiceContainer();
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Activate the extension
|
|
33
|
-
*/
|
|
34
|
-
async activate() {
|
|
35
|
-
if (this.activated) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
const startTime = performance.now();
|
|
39
|
-
try {
|
|
40
|
-
// Phase 1: Immediate (blocking)
|
|
41
|
-
await this.runImmediatePhase();
|
|
42
|
-
// Phase 2: Deferred (non-blocking)
|
|
43
|
-
setImmediate(() => {
|
|
44
|
-
this.runDeferredPhase().catch(error => {
|
|
45
|
-
this.getLogger().error('Deferred activation failed:', error);
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
this.activated = true;
|
|
49
|
-
const totalTime = performance.now() - startTime;
|
|
50
|
-
this.getLogger().info(`Extension activated in ${totalTime.toFixed(2)}ms`);
|
|
51
|
-
}
|
|
52
|
-
catch (error) {
|
|
53
|
-
this.getLogger().error('Activation failed:', error);
|
|
54
|
-
throw error;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Deactivate the extension
|
|
59
|
-
*/
|
|
60
|
-
async deactivate() {
|
|
61
|
-
this.getLogger().info('Deactivating extension...');
|
|
62
|
-
// Disconnect from server
|
|
63
|
-
const connectionManager = this.services.tryGet(ServiceKeys.ConnectionManager);
|
|
64
|
-
if (connectionManager) {
|
|
65
|
-
await connectionManager.disconnect();
|
|
66
|
-
}
|
|
67
|
-
// Dispose all resources
|
|
68
|
-
this.disposables.dispose();
|
|
69
|
-
this.services.clear();
|
|
70
|
-
this.activated = false;
|
|
71
|
-
this.getLogger().info('Extension deactivated');
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Dispose resources
|
|
75
|
-
*/
|
|
76
|
-
dispose() {
|
|
77
|
-
this.deactivate().catch(() => { });
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Get phase timings for telemetry
|
|
81
|
-
*/
|
|
82
|
-
getPhaseTimings() {
|
|
83
|
-
return [...this.phaseTimings];
|
|
84
|
-
}
|
|
85
|
-
async runImmediatePhase() {
|
|
86
|
-
const phases = getPhasesByType('immediate');
|
|
87
|
-
for (const phase of phases) {
|
|
88
|
-
await this.runPhase(phase.name, () => this.initializePhase(phase.name));
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
async runDeferredPhase() {
|
|
92
|
-
const phases = getPhasesByType('deferred');
|
|
93
|
-
for (const phase of phases) {
|
|
94
|
-
await this.runPhase(phase.name, () => this.initializePhase(phase.name));
|
|
95
|
-
}
|
|
96
|
-
// Register lazy providers
|
|
97
|
-
this.registerLazyProviders();
|
|
98
|
-
}
|
|
99
|
-
async runPhase(name, fn) {
|
|
100
|
-
const startTime = performance.now();
|
|
101
|
-
try {
|
|
102
|
-
await fn();
|
|
103
|
-
this.phaseTimings.push({
|
|
104
|
-
name,
|
|
105
|
-
duration: performance.now() - startTime,
|
|
106
|
-
success: true,
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
catch (error) {
|
|
110
|
-
this.phaseTimings.push({
|
|
111
|
-
name,
|
|
112
|
-
duration: performance.now() - startTime,
|
|
113
|
-
success: false,
|
|
114
|
-
error: error instanceof Error ? error.message : String(error),
|
|
115
|
-
});
|
|
116
|
-
throw error;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
async initializePhase(name) {
|
|
120
|
-
switch (name) {
|
|
121
|
-
case 'infrastructure':
|
|
122
|
-
await this.initializeInfrastructure();
|
|
123
|
-
break;
|
|
124
|
-
case 'state':
|
|
125
|
-
await this.initializeState();
|
|
126
|
-
break;
|
|
127
|
-
case 'config':
|
|
128
|
-
await this.initializeConfig();
|
|
129
|
-
break;
|
|
130
|
-
case 'statusBar':
|
|
131
|
-
await this.initializeStatusBar();
|
|
132
|
-
break;
|
|
133
|
-
case 'connection':
|
|
134
|
-
await this.initializeConnection();
|
|
135
|
-
break;
|
|
136
|
-
case 'commands':
|
|
137
|
-
await this.initializeCommands();
|
|
138
|
-
break;
|
|
139
|
-
case 'decorations':
|
|
140
|
-
await this.initializeDecorations();
|
|
141
|
-
break;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
async initializeInfrastructure() {
|
|
145
|
-
// Create logger
|
|
146
|
-
const logger = createLogger('Drift', 'info');
|
|
147
|
-
this.services.register(ServiceKeys.Logger, logger);
|
|
148
|
-
this.disposables.add(logger);
|
|
149
|
-
// Create event bus
|
|
150
|
-
const eventBus = createEventBus();
|
|
151
|
-
this.services.register('eventBus', eventBus);
|
|
152
|
-
this.disposables.add(eventBus);
|
|
153
|
-
logger.info('Infrastructure initialized');
|
|
154
|
-
}
|
|
155
|
-
async initializeState() {
|
|
156
|
-
const stateManager = createStateManager(this.context);
|
|
157
|
-
this.services.register(ServiceKeys.StateManager, stateManager);
|
|
158
|
-
this.disposables.add(stateManager);
|
|
159
|
-
this.getLogger().debug('State manager initialized');
|
|
160
|
-
}
|
|
161
|
-
async initializeConfig() {
|
|
162
|
-
const configManager = createConfigManager(this.getLogger());
|
|
163
|
-
this.services.register(ServiceKeys.ConfigManager, configManager);
|
|
164
|
-
this.disposables.add(configManager);
|
|
165
|
-
this.getLogger().debug('Config manager initialized');
|
|
166
|
-
}
|
|
167
|
-
async initializeStatusBar() {
|
|
168
|
-
const stateManager = this.services.get(ServiceKeys.StateManager);
|
|
169
|
-
const statusBar = createStatusBar(stateManager);
|
|
170
|
-
this.services.register(ServiceKeys.StatusBar, statusBar);
|
|
171
|
-
this.disposables.add(statusBar);
|
|
172
|
-
this.getLogger().debug('Status bar initialized');
|
|
173
|
-
}
|
|
174
|
-
async initializeConnection() {
|
|
175
|
-
const configManager = this.services.get(ServiceKeys.ConfigManager);
|
|
176
|
-
const eventBus = this.services.get('eventBus');
|
|
177
|
-
const stateManager = this.services.get(ServiceKeys.StateManager);
|
|
178
|
-
const connectionManager = createConnectionManager(this.context, this.getLogger(), eventBus, configManager.get('server'));
|
|
179
|
-
this.services.register(ServiceKeys.ConnectionManager, connectionManager);
|
|
180
|
-
this.disposables.add(connectionManager);
|
|
181
|
-
// Update state on connection changes
|
|
182
|
-
connectionManager.onStateChange(status => {
|
|
183
|
-
stateManager.update(draft => {
|
|
184
|
-
draft.connection.status = status;
|
|
185
|
-
});
|
|
186
|
-
});
|
|
187
|
-
// Start connection
|
|
188
|
-
await connectionManager.connect();
|
|
189
|
-
this.getLogger().debug('Connection manager initialized');
|
|
190
|
-
}
|
|
191
|
-
async initializeCommands() {
|
|
192
|
-
const stateManager = this.services.get(ServiceKeys.StateManager);
|
|
193
|
-
const connectionManager = this.services.get(ServiceKeys.ConnectionManager);
|
|
194
|
-
const eventBus = this.services.get('eventBus');
|
|
195
|
-
// Create notification service
|
|
196
|
-
const notifications = createNotificationService(this.getLogger());
|
|
197
|
-
// Create command router
|
|
198
|
-
const router = createCommandRouter(this.context, this.getLogger(), stateManager);
|
|
199
|
-
this.services.register(ServiceKeys.CommandRouter, router);
|
|
200
|
-
this.disposables.add(router);
|
|
201
|
-
// Add middleware
|
|
202
|
-
router
|
|
203
|
-
.use(createLoggingMiddleware(this.getLogger()))
|
|
204
|
-
.use(createConnectionCheckMiddleware(stateManager));
|
|
205
|
-
// Register command handlers
|
|
206
|
-
createConnectionHandlers(router, connectionManager, stateManager, notifications);
|
|
207
|
-
createScanHandlers(router, connectionManager, stateManager, notifications, eventBus);
|
|
208
|
-
createPatternHandlers(router, connectionManager, notifications);
|
|
209
|
-
createViolationHandlers(router, connectionManager, notifications);
|
|
210
|
-
createUIHandlers(router, notifications);
|
|
211
|
-
this.getLogger().debug('Commands initialized');
|
|
212
|
-
}
|
|
213
|
-
async initializeDecorations() {
|
|
214
|
-
const configManager = this.services.get(ServiceKeys.ConfigManager);
|
|
215
|
-
const decorationController = createDecorationController(this.context, configManager);
|
|
216
|
-
this.services.register(ServiceKeys.DecorationController, decorationController);
|
|
217
|
-
this.disposables.add(decorationController);
|
|
218
|
-
this.getLogger().debug('Decorations initialized');
|
|
219
|
-
}
|
|
220
|
-
registerLazyProviders() {
|
|
221
|
-
// Tree views and webviews are registered but not initialized until accessed
|
|
222
|
-
// This keeps activation fast while still registering the providers
|
|
223
|
-
this.getLogger().debug('Lazy providers registered');
|
|
224
|
-
}
|
|
225
|
-
getLogger() {
|
|
226
|
-
return this.services.get(ServiceKeys.Logger);
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
/**
|
|
230
|
-
* Factory function for creating activation controller
|
|
231
|
-
*/
|
|
232
|
-
export function createActivationController(context) {
|
|
233
|
-
return new ActivationController(context);
|
|
234
|
-
}
|
|
235
|
-
//# sourceMappingURL=activation-controller.js.map
|