-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
396 lines (396 loc) · 12.6 KB
/
package.json
File metadata and controls
396 lines (396 loc) · 12.6 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
{
"name": "alterminal",
"displayName": "Alterminal",
"description": "Feature-rich terminal alternative for VS Code - use standalone or alongside the built-in terminal",
"version": "0.2.0-dev.12",
"preview": true,
"publisher": "twilightcoders",
"icon": "media/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/twilightcoders/vscode-alterminal"
},
"extensionKind": [
"workspace"
],
"engines": {
"vscode": "^1.108.0"
},
"categories": [
"Other"
],
"keywords": [
"terminal",
"automation",
"command",
"developer-tools"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"viewsContainers": {
"panel": [
{
"id": "alterminal",
"title": "Alterminal",
"icon": "media/icon.png"
}
]
},
"views": {
"alterminal": [
{
"id": "alterminalView",
"name": "Alterminal",
"type": "webview",
"icon": "$(terminal)",
"retainContextWhenHidden": true,
"initialSize": 1
}
]
},
"commands": [
{
"command": "alterminal.refresh",
"title": "Refresh",
"icon": "$(refresh)"
},
{
"command": "alterminal.newTab",
"title": "New Terminal Tab",
"icon": "$(add)"
},
{
"command": "alterminal.newTerminal.default",
"title": "New Terminal",
"icon": "$(terminal)"
},
{
"command": "alterminal.newTerminal.shell",
"title": "Shell Terminal",
"icon": "$(terminal)"
},
{
"command": "alterminal.newTerminal.command",
"title": "New Terminal",
"icon": "$(add)"
},
{
"command": "alterminal.openTerminal",
"title": "Open Alterminal",
"icon": "$(terminal)"
},
{
"command": "alterminal.debugState",
"title": "Show Saved State",
"icon": "$(bug)"
},
{
"command": "alterminal.clearWorkspaceState",
"title": "Clear Workspace State",
"icon": "$(trash)"
},
{
"command": "alterminal.testLinks",
"title": "Test WebLinks Addon",
"icon": "$(link)"
},
{
"command": "alterminal.setDebugFilter",
"title": "Set Debug Filter",
"icon": "$(filter)"
},
{
"command": "alterminal.clearDebugFilter",
"title": "Clear Debug Filter",
"icon": "$(clear-all)"
},
{
"command": "alterminal.debugMenu",
"title": "Debug Menu",
"icon": "$(bug)"
},
{
"command": "alterminal.focus",
"title": "Show Alterminal",
"icon": "$(terminal)"
},
{
"command": "alterminal.openSettings",
"title": "Settings",
"icon": "$(settings-gear)"
},
{
"command": "alterminal.restartDaemon",
"title": "Alterminal: Restart PTY Daemon"
},
{
"command": "alterminal.showSavedCommands",
"title": "Launch Saved Command",
"icon": "$(play)"
},
{
"command": "alterminal.saveCurrentCommand",
"title": "Save Current Command",
"icon": "$(save)"
},
{
"command": "alterminal.saveTabCommand",
"title": "Save Command",
"icon": "$(save)"
},
{
"command": "alterminal.renameTab",
"title": "Rename Tab",
"icon": "$(edit)"
},
{
"command": "alterminal.closeTab",
"title": "Close Tab",
"icon": "$(close)"
},
{
"command": "alterminal.showTabBuffer",
"title": "Show Buffer",
"icon": "$(output)"
},
{
"command": "alterminal.setTabIcon",
"title": "Set Icon",
"icon": "$(symbol-color)"
}
],
"submenus": [
{
"id": "alterminal.tools",
"label": "Tools",
"icon": "$(tools)"
}
],
"menus": {
"view/title": [
{
"command": "alterminal.newTerminal.command",
"when": "view == alterminalView",
"group": "navigation@1"
},
{
"submenu": "alterminal.tools",
"when": "view == alterminalView",
"group": "navigation@2"
}
],
"alterminal.tools": [
{
"command": "alterminal.openSettings",
"group": "1_general@1"
},
{
"command": "alterminal.refresh",
"group": "1_general@2"
},
{
"command": "alterminal.debugState",
"group": "2_debug@1"
},
{
"command": "alterminal.clearWorkspaceState",
"group": "2_debug@2"
}
],
"commandPalette": [
{
"command": "alterminal.openTerminal",
"when": "true"
},
{
"command": "alterminal.focus",
"when": "true"
}
],
"explorer/context": [
{
"command": "alterminal.openTerminal",
"group": "navigation"
}
],
"editor/title": [
{
"command": "alterminal.openTerminal",
"when": "true",
"group": "navigation"
}
],
"webview/context": [
{
"command": "alterminal.saveTabCommand",
"when": "webviewId == alterminalView && webviewSection == alterminal && contextType == tab && terminalType == command && !savedCommand",
"group": "1_tab@1"
},
{
"command": "alterminal.renameTab",
"when": "webviewId == alterminalView && webviewSection == alterminal && contextType == tab",
"group": "1_tab@2"
},
{
"command": "alterminal.setTabIcon",
"when": "webviewId == alterminalView && webviewSection == alterminal && contextType == tab",
"group": "1_tab@3"
},
{
"command": "alterminal.closeTab",
"when": "webviewId == alterminalView && webviewSection == alterminal && contextType == tab",
"group": "2_tab@1"
},
{
"command": "alterminal.showTabBuffer",
"when": "webviewId == alterminalView && webviewSection == alterminal && contextType == tab",
"group": "3_debug@1"
}
]
},
"configuration": {
"title": "Alterminal",
"properties": {
"alterminal.ptyDaemon.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": "Keep terminal processes alive across window reloads. When enabled, PTY processes are managed by a background daemon that persists independently of the VS Code extension host. **Experimental.**"
},
"alterminal.tabLayout": {
"type": "string",
"enum": [
"auto",
"horizontal",
"vertical"
],
"default": "auto",
"description": "Tab layout orientation",
"enumDescriptions": [
"Automatically switch between horizontal and vertical based on panel size",
"Always use horizontal tabs (tabs on top)",
"Always use vertical tabs (tabs on left side)"
]
},
"alterminal.tabTitle.template": {
"type": "string",
"default": "{base}{p? • {p}}",
"description": "Template for tab titles using tokens like {n} (name), {base} (base name), {p} (process), {title} (OSC terminal title), {cwd} (directory). Supports conditionals: {p?text} and defaults: {p:shell}"
},
"alterminal.tabTitle.maxLength": {
"type": "number",
"default": 50,
"minimum": 10,
"maximum": 100,
"description": "Maximum length for tab titles before truncation"
},
"alterminal.tabTitle.truncateMode": {
"type": "string",
"enum": [
"start",
"middle",
"end"
],
"default": "end",
"description": "How to truncate long tab titles",
"enumDescriptions": [
"Truncate from the beginning: …end-of-title",
"Truncate from the middle: start…end",
"Truncate from the end: start-of-title…"
]
},
"alterminal.terminal.scrollback": {
"type": "number",
"default": 1000,
"minimum": 100,
"maximum": 50000,
"description": "Number of lines to keep in terminal scrollback buffer. Higher values use more memory but preserve more history."
},
"alterminal.clearSelectionOnCopy": {
"type": "boolean",
"default": true,
"description": "Clear the text selection after copying to clipboard. Disable to keep text selected after Cmd/Ctrl+C."
},
"alterminal.alwaysShowTabs": {
"type": "boolean",
"default": false,
"description": "Always show the tab bar, even when there is only one terminal tab"
},
"alterminal.bellIndicator": {
"type": "string",
"default": "🔔",
"markdownDescription": "Text shown in the window title when a background terminal has unread bell activity. Add `${alterminalBell}` to your `#window.title#` setting to enable. Set to empty string to disable."
},
"alterminal.savedCommands": {
"type": "array",
"default": [],
"markdownDescription": "Saved terminal commands for quick launching. Commands support template variables that expand at launch time:\n\n| Token | Value |\n|-------|-------|\n| `{workspace}` | Workspace folder name |\n| `{workspacePath}` | Full workspace folder path |\n| `{user}` | OS username |\n| `{platform}` | `process.platform` (darwin, linux, win32) |\n| `{env.VAR}` | Environment variable `VAR` |\n| `{i:prompt}` | Interactive — prompts user at launch time |\n\nSupports conditionals: `{workspace:default}`, `{workspace?then:else}`. Unknown tokens are left as-is. Use `{i:prompt}` in `cwd` for a folder picker or in `command` for an input box.",
"items": {
"type": "object",
"properties": {
"command": {
"type": "string",
"description": "The command to execute"
},
"label": {
"type": "string",
"description": "Display label for the command"
},
"count": {
"type": "number",
"description": "Usage count"
},
"lastUsed": {
"type": "string",
"description": "Last used timestamp"
},
"cwd": {
"type": "string",
"description": "Working directory. Supports {i:prompt}, {workspace}, {workspacePath}, {env.VAR}."
}
}
}
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile && node scripts/verify-binaries.js",
"verify-binaries": "node scripts/verify-binaries.js",
"compile": "node ./node_modules/typescript/lib/tsc.js -p ./ && node ./node_modules/typescript/lib/tsc.js -p ./tsconfig.webview.json",
"compile:debug": "NODE_ENV=development node ./node_modules/typescript/lib/tsc.js -p ./ && NODE_ENV=development node ./node_modules/typescript/lib/tsc.js -p ./tsconfig.webview.json",
"compile:tests": "node ./node_modules/typescript/lib/tsc.js -p ./tsconfig.tests.json",
"watch": "node ./node_modules/typescript/lib/tsc.js -watch -p ./",
"watch:debug": "NODE_ENV=development node ./node_modules/typescript/lib/tsc.js -watch -p ./",
"test": "node -e \"require('fs').rmSync('out/test', {recursive:true, force:true});\" && npm run compile:tests && node ./out/test/test/runTest.js",
"dev:install": "bash scripts/dev-install.sh"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "^20.19.30",
"@types/vscode": "^1.108.1",
"@vscode/test-electron": "^2.5.2",
"mocha": "^11.7.5",
"typescript": "^5.9.3"
},
"dependencies": {
"@lydell/node-pty": "^1.1.0",
"@vscode/codicons": "^0.0.44",
"@xterm/addon-fit": "^0.11.0",
"@xterm/addon-serialize": "^0.14.0",
"@xterm/addon-unicode11": "^0.9.0",
"@xterm/addon-web-links": "^0.12.0",
"@xterm/addon-webgl": "^0.19.0",
"@xterm/xterm": "^6.0.0",
"xterm-link-provider": "TwilightCoders/xterm-link-provider#5373841"
},
"optionalDependencies": {
"@lydell/node-pty-darwin-arm64": "^1.1.0",
"@lydell/node-pty-linux-arm64": "^1.1.0",
"@lydell/node-pty-linux-x64": "^1.1.0",
"@lydell/node-pty-win32-ia32": "npm:null@*",
"@lydell/node-pty-win32-x64": "^1.1.0"
}
}