-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
327 lines (327 loc) · 9.48 KB
/
Copy pathpackage.json
File metadata and controls
327 lines (327 loc) · 9.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
{
"name": "effect-vscode",
"displayName": "Effect Dev Tools",
"description": "Tools to assist development with the Effect Typescript framework",
"icon": "resources/icons/effect-dark.png",
"version": "0.9.0",
"private": true,
"packageManager": "pnpm@9.0.6",
"engines": {
"vscode": "^1.84.0"
},
"repository": {
"type": "git",
"url": "https://github.com/effect-ts/vscode-extension.git"
},
"license": "MIT",
"categories": [
"Debuggers",
"Visualization"
],
"activationEvents": [
"onDebug"
],
"main": "./out/extension.js",
"publisher": "effectful-tech",
"contributes": {
"configuration": {
"title": "Effect Dev Tools",
"properties": {
"effect.devServer.port": {
"type": "integer",
"default": 34437,
"description": "The port to run the Effect dev server on"
},
"effect.metrics.pollInterval": {
"type": "integer",
"default": 500,
"description": "The time in milliseconds between polling for metrics"
},
"effect.tracer.pollInterval": {
"type": "integer",
"default": 250,
"description": "The time in milliseconds between polling for span data while using the debug protocol transport"
},
"effect.spanStack.ignoreList": {
"type": "array",
"items": {
"type": "string",
"default": ""
},
"default": [],
"description": "A list of span patterns to ignore when showing the span stack"
},
"effect.instrumentation.injectNodeOptions": {
"type": "boolean",
"default": false,
"description": "If enabled, the effect instrumentation code will be injected into node debug configurations by appending a NODE_OPTIONS environment variable"
},
"effect.instrumentation.injectDebugConfigurations": {
"type": "array",
"items": {
"type": "string",
"default": ""
},
"default": [
"node",
"node-terminal",
"pwa-node"
],
"description": "A list of debug configuration types to inject the instrumentation into when injectNodeOptions is enabled"
}
}
},
"commands": [
{
"command": "effect.startServer",
"title": "Effect Dev Tools: Start Server",
"icon": "$(play)"
},
{
"command": "effect.stopServer",
"title": "Effect Dev Tools: Stop Server",
"icon": "$(debug-stop)"
},
{
"command": "effect.attachDebugSessionClient",
"title": "Effect Dev Tools: Attach Debug Session Client",
"icon": "$(debug)"
},
{
"command": "effect.resetMetrics",
"title": "Effect Dev Tools: Reset Metrics",
"icon": "$(refresh)"
},
{
"command": "effect.resetTracer",
"title": "Effect Dev Tools: Reset Tracer",
"icon": "$(refresh)"
},
{
"command": "effect.copyInfoValue",
"title": "Copy value",
"icon": "$(copy)"
},
{
"command": "effect.revealSpanLocation",
"title": "Effect Dev Tools: Reveal Span Location",
"icon": "$(go-to-file)"
},
{
"command": "effect.revealFiberCurrentSpan",
"title": "Effect Dev Tools: Reveal Fiber Current Span Location",
"icon": "$(go-to-file)"
},
{
"command": "effect.interruptDebugFiber",
"title": "Effect Dev Tools: Interrupt Fiber",
"icon": "$(debug-stop)"
},
{
"command": "effect.resetTracerExtended",
"title": "Effect Dev Tools: Reset Tracer Extended",
"icon": "$(refresh)"
},
{
"command": "effect.enableSpanStackIgnoreList",
"title": "Effect Dev Tools: Enable Span Stack Ignore List",
"icon": "$(eye-closed)"
},
{
"command": "effect.disableSpanStackIgnoreList",
"title": "Effect Dev Tools: Disable Span Stack Ignore List",
"icon": "$(eye)"
},
{
"command": "effect.showLayerMermaid",
"title": "Effect Dev Tools: Show Layer Mermaid Graph (locally)"
},
{
"command": "effect.togglePauseOnDefects",
"title": "Effect Dev Tools: Toggle Pause on Defects"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "effect",
"title": "Effect Dev Tools",
"icon": "resources/icons/effect-light.svg"
}
],
"panel": [
{
"id": "effect-tracer-panel",
"title": "Effect Tracer",
"icon": "resources/icons/effect-light.svg"
}
]
},
"views": {
"effect": [
{
"id": "effect-clients",
"name": "Clients"
},
{
"id": "effect-tracer",
"name": "Tracer"
},
{
"id": "effect-metrics",
"name": "Metrics"
}
],
"debug": [
{
"id": "effect-context",
"name": "Effect Context",
"when": "inDebugMode"
},
{
"id": "effect-debug-span-stack",
"name": "Effect Span Stack",
"when": "inDebugMode"
},
{
"id": "effect-debug-fibers",
"name": "Effect Fibers",
"when": "inDebugMode"
},
{
"id": "effect-debug-breakpoints",
"name": "Effect Breakpoints",
"when": "inDebugMode"
}
],
"effect-tracer-panel": [
{
"type": "webview",
"id": "effect-tracer-extended",
"name": "Effect Tracer"
}
]
},
"viewsWelcome": [
{
"view": "effect-clients",
"contents": "The Effect Dev Tools server is currently stopped.\n[Start the server](command:effect.startServer)"
}
],
"menus": {
"view/title": [
{
"command": "effect.startServer",
"when": "view === effect-clients && effect:running === false",
"group": "navigation"
},
{
"command": "effect.stopServer",
"when": "view === effect-clients && effect:running === true",
"group": "navigation"
},
{
"command": "effect.attachDebugSessionClient",
"when": "view === effect-clients && inDebugMode",
"group": "navigation"
},
{
"command": "effect.resetMetrics",
"when": "view === effect-metrics",
"group": "navigation"
},
{
"command": "effect.resetTracer",
"when": "view === effect-tracer",
"group": "navigation"
},
{
"command": "effect.resetTracerExtended",
"when": "view === effect-tracer-extended",
"group": "navigation"
},
{
"command": "effect.enableSpanStackIgnoreList",
"when": "view === effect-debug-span-stack && effect:spanStackIgnoreListEnabled === false",
"group": "navigation"
},
{
"command": "effect.disableSpanStackIgnoreList",
"when": "view === effect-debug-span-stack && effect:spanStackIgnoreListEnabled === true",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "effect.copyInfoValue",
"when": "viewItem == info"
},
{
"command": "effect.revealSpanLocation",
"when": "inDebugMode && view === effect-debug-span-stack && viewItem === span",
"group": "inline"
},
{
"command": "effect.revealFiberCurrentSpan",
"when": "inDebugMode && view === effect-debug-fibers && (viewItem === fiber || viewItem === fiber-interrupting)",
"group": "inline"
},
{
"command": "effect.interruptDebugFiber",
"when": "inDebugMode && view === effect-debug-fibers && viewItem === fiber",
"group": "inline"
}
]
}
},
"scripts": {
"vscode:prepublish": "pnpm build",
"build": "pnpm --filter \"tracer\" run build && tsup --config tsup.instrumentation.config.ts && tsup",
"dev": "tsup --watch",
"lint": "eslint src",
"lint-fix": "eslint src --fix",
"check": "tsc -b tsconfig.json",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.1",
"@changesets/cli": "^2.29.5",
"@effect/eslint-plugin": "^0.3.2",
"@effect/experimental": "^0.54.1",
"@effect/language-service": "^0.40.0",
"@effect/platform": "^0.90.0",
"@effect/platform-node": "^0.94.0",
"@swc/core": "^1.13.3",
"@types/mocha": "^10.0.10",
"@types/node": "~24.1.0",
"@types/vscode": "^1.84.0",
"@types/ws": "^8.18.1",
"@typescript-eslint/eslint-plugin": "^8.38.0",
"@typescript-eslint/parser": "^8.38.0",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.6.0",
"effect": "^3.17.3",
"eslint": "^9.32.0",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import-x": "^4.16.1",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-sort-destructure-keys": "^2.0.0",
"glob": "^11.0.3",
"mocha": "^11.7.1",
"prettier": "^3.6.2",
"tslib": "^2.8.1",
"tsup": "^8.5.0",
"typescript": "^5.8.3",
"typescript-eslint": "^8.38.0",
"ws": "^8.18.3",
"minimatch": "^10.0.3"
},
"sideEffects": false,
"pnpm": {
"updateConfig": {
"ignoreDependencies": [
"@types/vscode"
]
}
}
}