Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
544 lines (544 loc) · 17.3 KB
/
Copy pathpackage.json
File metadata and controls
544 lines (544 loc) · 17.3 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
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
{
"name": "searchlight",
"displayName": "Searchlight: Local Code Review",
"description": "Local-only code review with reviews, threads, and Copilot-ready comment schema.",
"version": "0.0.1",
"publisher": "TimothyMothra",
"private": true,
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/TimothyMothra/Searchlight-LocalCodeReview.git"
},
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished",
"onWebviewPanel:searchlight.conversationPage",
"workspaceContains:.vscode/searchlight-reviews/**/comments.json"
],
"main": "./out/extension.js",
"capabilities": {
"untrustedWorkspaces": {
"supported": true
}
},
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "searchlight",
"title": "Searchlight",
"icon": "media/searchlight.svg"
}
]
},
"views": {
"searchlight": [
{
"id": "searchlight.comparison",
"name": "Comparison",
"type": "webview",
"visibility": "collapsed",
"icon": "media/searchlight.svg",
"initialSize": 450
},
{
"id": "searchlight.files",
"name": "Changed Files",
"type": "webview",
"icon": "media/searchlight.svg",
"initialSize": 400
},
{
"id": "searchlight.conversations",
"name": "Threads",
"type": "webview",
"icon": "media/searchlight.svg",
"initialSize": 200
}
]
},
"viewsWelcome": [
{
"view": "searchlight.files",
"contents": "No changed files between base and compare."
},
{
"view": "searchlight.conversations",
"contents": "No threads yet. Start a review-wide thread or add a comment to a changed file."
}
],
"commands": [
{
"command": "searchlight.newConversation",
"title": "Searchlight: New Thread",
"icon": "$(add)"
},
{
"command": "searchlight.viewConversation",
"title": "Searchlight: Read Thread"
},
{
"command": "searchlight.exportStartupDiagnostics",
"title": "Searchlight: Export Startup Diagnostics"
},
{
"command": "searchlight.refresh",
"title": "Searchlight: Refresh Local Reviews",
"icon": "$(refresh)"
},
{
"command": "searchlight.createOrReply",
"title": "Searchlight: Add Comment / Reply",
"icon": "$(comment)"
},
{
"command": "searchlight.toggleThreadResolved",
"title": "Searchlight: Toggle Resolved",
"icon": "$(check)"
},
{
"command": "searchlight.resolveThread",
"title": "Searchlight: Resolve Thread",
"icon": "$(check)"
},
{
"command": "searchlight.unresolveThread",
"title": "Searchlight: Reopen Thread",
"icon": "$(issue-reopened)"
},
{
"command": "searchlight.resolveThreadNode",
"title": "Searchlight: Resolve Thread",
"icon": "$(check)"
},
{
"command": "searchlight.unresolveThreadNode",
"title": "Searchlight: Reopen Thread",
"icon": "$(issue-reopened)"
},
{
"command": "searchlight.askCopilotThread",
"title": "Searchlight: Ask Copilot to Review Thread",
"icon": "$(hubot)"
},
{
"command": "searchlight.askCopilotReview",
"title": "Searchlight: Ask Copilot to Review (All Threads)",
"icon": "$(hubot)"
},
{
"command": "searchlight.copyCommitId",
"title": "Searchlight: Copy Commit Id"
},
{
"command": "searchlight.copyBranchName",
"title": "Searchlight: Copy Branch Name"
},
{
"command": "searchlight.copyDirPath",
"title": "Searchlight: Copy Review Directory Path"
},
{
"command": "searchlight.pickBranches",
"title": "Searchlight: Pick Source/Target Branches",
"icon": "$(git-branch)"
},
{
"command": "searchlight.switchReview",
"title": "Searchlight: Switch Active Review",
"icon": "$(arrow-swap)"
},
{
"command": "searchlight.openDirectory",
"title": "Searchlight: Open Branch Directory",
"icon": "$(folder-opened)"
},
{
"command": "searchlight.gitPull",
"title": "Searchlight: Git Pull",
"icon": "$(arrow-down)"
},
{
"command": "searchlight.gitPush",
"title": "Searchlight: Git Push",
"icon": "$(arrow-up)"
},
{
"command": "searchlight.openTerminalHere",
"title": "Searchlight: Open Terminal Here",
"icon": "$(terminal)"
},
{
"command": "searchlight.pickBase",
"title": "Searchlight: Pick Base Branch",
"icon": "$(edit)"
},
{
"command": "searchlight.pickCompare",
"title": "Searchlight: Pick Compare Branch",
"icon": "$(edit)"
},
{
"command": "searchlight.swapBranches",
"title": "Searchlight: Swap Base/Compare",
"icon": "$(arrow-swap)"
},
{
"command": "searchlight.refreshAll",
"title": "Searchlight: Refresh",
"icon": "$(refresh)"
},
{
"command": "searchlight.openFileDiff",
"title": "Searchlight: Open File Diff"
},
{
"command": "searchlight.openCumulativeFileDiff",
"title": "Searchlight: Open Cumulative File Diff"
},
{
"command": "searchlight.copyCommitSha",
"title": "Searchlight: Copy Commit SHA",
"icon": "$(copy)"
},
{
"command": "searchlight.updateStaleBranch",
"title": "Searchlight: Update Stale Branch (Fast-Forward)",
"icon": "$(cloud-download)"
},
{
"command": "searchlight.filesExpandAll",
"title": "Searchlight: Expand All Files",
"icon": "$(expand-all)"
},
{
"command": "searchlight.filesHideUncommitted",
"title": "Searchlight: Hide Uncommitted Changes",
"icon": "$(eye)"
},
{
"command": "searchlight.filesShowUncommitted",
"title": "Searchlight: Show Uncommitted Changes",
"icon": "$(eye-closed)"
},
{
"command": "searchlight.conversationsHideResolved",
"title": "Searchlight: Hide Resolved Threads",
"icon": "$(eye)"
},
{
"command": "searchlight.conversationsShowResolved",
"title": "Searchlight: Show Resolved Threads",
"icon": "$(eye-closed)"
},
{
"command": "searchlight.openCommitDiff",
"title": "Searchlight: Open Commit Diff"
},
{
"command": "searchlight.setCommitAsBase",
"title": "Set as Base",
"category": "Searchlight",
"icon": "$(git-compare)"
},
{
"command": "searchlight.unpinBase",
"title": "Searchlight: Unpin Base (Return to Automatic Selection)",
"icon": "$(discard)"
},
{
"command": "searchlight.commitsViewAllChanges",
"title": "Searchlight: View All Changes vs Base",
"icon": "$(diff-multiple)"
},
{
"command": "searchlight.collapseAllCommits",
"title": "Searchlight: Collapse All Commits",
"icon": "$(collapse-all)"
},
{
"command": "searchlight.openCommitFileDiff",
"title": "Searchlight: Open Commit File Diff"
},
{
"command": "searchlight.openTerminal",
"title": "Searchlight: Open Terminal in Compare Branch Directory",
"icon": "$(terminal)"
},
{
"command": "searchlight.copyCompareBranch",
"title": "Searchlight: Copy Compare Branch Name",
"icon": "$(copy)"
},
{
"command": "searchlight.copyComparePath",
"title": "Searchlight: Copy Compare Branch Path",
"icon": "$(files)"
}
],
"configuration": {
"title": "Searchlight",
"properties": {
"searchlight.tags": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"idea",
"question",
"bug",
"change",
"todo",
"nit",
"praise"
],
"description": "Tags offered by /tag autocomplete in the comment box and applied to a thread's tags[]."
},
"searchlight.copilotPath": {
"type": "string",
"default": "copilot",
"description": "Path to the Copilot CLI executable used by the 'Ask Copilot to Review' commands."
},
"searchlight.copilotArgs": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"-p"
],
"description": "Arguments passed to the Copilot CLI before the generated prompt string (the prompt is appended as the final argument)."
},
"searchlight.defaultRemote": {
"type": "string",
"default": "",
"description": "Default remote name used by 'Git Push'. Leave empty to let git use the branch's configured upstream."
},
"searchlight.autoCreateOnEmpty": {
"type": "boolean",
"default": true,
"description": "When true, activation computes a default base/compare comparison and populates the panel. When false, base/compare stay unset until you pick them and the views show their welcome content."
},
"searchlight.perfLogging": {
"type": "boolean",
"default": true,
"description": "Record correlated startup, Git, storage and pane-readiness timings in the Searchlight OUTPUT channel and a bounded in-memory trace. Use 'Searchlight: Export Startup Diagnostics' to save a JSON report. Enable before reloading for a complete startup capture."
},
"searchlight.usageLogging": {
"type": "boolean",
"default": true,
"description": "Automatically record local feature actions, pane exposure and editor-context usage in the Searchlight output log. No filenames, code, comments or remote telemetry are collected. Independent of performance logging."
},
"searchlight.deferThreadsOnLoad": {
"type": "boolean",
"default": true,
"description": "When true, comment threads are not materialized eagerly during activation; rendering is deferred until an editor becomes visible (or a short fallback delay), avoiding thread flashing and editor-tab churn on load. User actions (reply, resolve) always render immediately."
},
"searchlight.files.compactFolders": {
"type": "boolean",
"default": true,
"description": "When true, single-child folder chains in the Changed Files pane are compacted onto one row (e.g. 'Service/StoreService.Runner/Commands'), mirroring VS Code's explorer.compactFolders. Changes apply immediately — no reload needed."
},
"searchlight.files.autoReveal": {
"type": "boolean",
"default": true,
"description": "When true, the Changed Files pane highlights the row matching the active editor, expanding its folders and scrolling it into view, mirroring VS Code's explorer.autoReveal. Revealing never opens or closes an editor."
},
"searchlight.files.cumulativeDiff": {
"type": "boolean",
"default": true,
"description": "When true, the Changed Files pane shows all committed AND uncommitted changes versus the effective baseline (automatic shared ancestor or pinned commit), as a single diff per file. Turn off to view committed and uncommitted changes separately. Only applies when the compare branch is the checked-out branch. Changes apply immediately — no reload needed."
}
}
},
"menus": {
"view/title": [
{
"command": "searchlight.newConversation",
"when": "view == searchlight.conversations",
"group": "navigation@-1"
},
{
"command": "searchlight.collapseAllCommits",
"when": "view == searchlight.comparison",
"group": "navigation@0"
},
{
"command": "searchlight.copyCompareBranch",
"when": "view == searchlight.comparison",
"group": "navigation@1"
},
{
"command": "searchlight.copyComparePath",
"when": "view == searchlight.comparison",
"group": "navigation@2"
},
{
"command": "searchlight.openTerminal",
"when": "view == searchlight.comparison",
"group": "navigation@3"
},
{
"command": "searchlight.refreshAll",
"when": "view == searchlight.comparison",
"group": "navigation@4"
},
{
"command": "searchlight.filesHideUncommitted",
"when": "view == searchlight.files && !searchlight.filesUncommittedHidden",
"group": "navigation@0"
},
{
"command": "searchlight.filesShowUncommitted",
"when": "view == searchlight.files && searchlight.filesUncommittedHidden",
"group": "navigation@0"
},
{
"command": "searchlight.filesExpandAll",
"when": "view == searchlight.files",
"group": "navigation@2"
},
{
"command": "searchlight.refreshAll",
"when": "view == searchlight.files",
"group": "navigation@3"
},
{
"command": "searchlight.conversationsHideResolved",
"when": "view == searchlight.conversations && !searchlight.conversationsResolvedHidden",
"group": "navigation@0"
},
{
"command": "searchlight.conversationsShowResolved",
"when": "view == searchlight.conversations && searchlight.conversationsResolvedHidden",
"group": "navigation@0"
},
{
"command": "searchlight.refreshAll",
"when": "view == searchlight.conversations",
"group": "navigation@1"
}
],
"webview/context": [
{
"command": "searchlight.setCommitAsBase",
"when": "webviewId == searchlight.comparison && webviewSection == commit",
"group": "searchlight@1"
},
{
"command": "searchlight.copyCommitSha",
"when": "webviewId == searchlight.comparison && webviewSection == commit",
"group": "searchlight@2"
},
{
"command": "searchlight.openCommitDiff",
"when": "webviewId == searchlight.comparison && webviewSection == commit",
"group": "searchlight@3"
}
],
"view/item/context": [
{
"command": "searchlight.resolveThreadNode",
"when": "view == searchlight.conversations && viewItem == searchlight.thread.unresolved",
"group": "inline@1"
},
{
"command": "searchlight.unresolveThreadNode",
"when": "view == searchlight.conversations && viewItem == searchlight.thread.resolved",
"group": "inline@1"
}
],
"comments/commentThread/title": [
{
"command": "searchlight.toggleThreadResolved",
"group": "inline@1",
"when": "commentController == searchlight"
}
],
"comments/commentThread/context": [
{
"command": "searchlight.createOrReply",
"group": "inline@1",
"when": "commentController == searchlight"
}
],
"commandPalette": [
{
"command": "searchlight.viewConversation",
"when": "false"
},
{
"command": "searchlight.setCommitAsBase",
"when": "false"
},
{
"command": "searchlight.createOrReply",
"when": "false"
},
{
"command": "searchlight.resolveThread",
"when": "false"
},
{
"command": "searchlight.unresolveThread",
"when": "false"
},
{
"command": "searchlight.resolveThreadNode",
"when": "false"
},
{
"command": "searchlight.unresolveThreadNode",
"when": "false"
},
{
"command": "searchlight.askCopilotThread",
"when": "false"
},
{
"command": "searchlight.openFileDiff",
"when": "false"
},
{
"command": "searchlight.openCumulativeFileDiff",
"when": "false"
},
{
"command": "searchlight.openCommitDiff",
"when": "false"
},
{
"command": "searchlight.openCommitFileDiff",
"when": "false"
},
{
"command": "searchlight.copyCommitSha",
"when": "false"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"test": "npm run compile && node --test",
"watch": "tsc -watch -p ./"
},
"devDependencies": {
"@types/markdown-it": "^14.2.0",
"@types/node": "^20.11.0",
"@types/vscode": "^1.85.0",
"@vscode/vsce": "^3.9.2",
"typescript": "^5.4.0"
},
"dependencies": {
"markdown-it": "^14.3.1"
}
}