-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
137 lines (137 loc) · 3.87 KB
/
Copy pathpackage.json
File metadata and controls
137 lines (137 loc) · 3.87 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
{
"name": "bashle",
"displayName": "Bashle \u2014 Live Bash",
"description": "A live programming environment for bash scripts: see expansions, exit codes and filesystem effects inline, sandboxed.",
"version": "0.1.0",
"publisher": "srj31",
"license": "MIT",
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Debuggers",
"Programming Languages",
"Testing"
],
"keywords": [
"bash",
"shell",
"live",
"trace",
"sandbox"
],
"icon": "media/logo.png",
"main": "./dist/extension.js",
"activationEvents": [
"onLanguage:shellscript"
],
"contributes": {
"commands": [
{
"command": "bashle.run",
"title": "Bashle: Run probes in this file",
"icon": "$(play)"
},
{
"command": "bashle.showPanel",
"title": "Bashle: Show panel"
},
{
"command": "bashle.clear",
"title": "Bashle: Clear annotations"
},
{
"command": "bashle.drillDown",
"title": "Bashle: Inspect this line"
}
],
"keybindings": [
{
"command": "bashle.run",
"key": "ctrl+alt+r",
"mac": "cmd+alt+r",
"when": "editorLangId == shellscript"
},
{
"command": "bashle.drillDown",
"key": "ctrl+alt+i",
"mac": "cmd+alt+i",
"when": "editorLangId == shellscript"
}
],
"configuration": {
"title": "Bashle",
"properties": {
"bashle.bashPath": {
"type": "string",
"default": "",
"markdownDescription": "Path to a bash >= 4.1. Leave empty to auto-discover (Homebrew, then PATH). macOS `/bin/bash` is 3.2 and is **not** supported."
},
"bashle.runOnSave": {
"type": "boolean",
"default": true,
"description": "Run probes automatically when a shell script is saved."
},
"bashle.timeoutMs": {
"type": "number",
"default": 5000,
"description": "Kill a probe run after this many milliseconds."
},
"bashle.enforceSandbox": {
"type": "boolean",
"default": true,
"description": "Enforce containment with sandbox-exec. When false, runs are contained by scratch clone + env only."
},
"bashle.maxRecords": {
"type": "number",
"default": 50000,
"description": "Stop tracing after this many events; the trace is marked truncated."
},
"bashle.maxCloneBytes": {
"type": "number",
"default": 536870912,
"description": "Refuse to clone a workspace larger than this (bytes)."
},
"bashle.watchAllVariables": {
"type": "boolean",
"default": false,
"description": "Snapshot every variable rather than only those named in the script. Slower."
}
}
},
"menus": {
"editor/title": [
{
"command": "bashle.run",
"when": "editorLangId == shellscript",
"group": "navigation"
}
]
}
},
"scripts": {
"build": "esbuild src/extension.ts --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node",
"watch": "npm run build -- --watch",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"build:cli": "esbuild src/cli.ts --bundle --outfile=dist/cli.js --format=cjs --platform=node",
"probe": "npm run build:cli --silent && node dist/cli.js",
"package": "npm run build && vsce package --no-dependencies"
},
"devDependencies": {
"@types/node": "^22.10.0",
"@types/vscode": "^1.85.0",
"@vscode/vsce": "^3.9.2",
"esbuild": "^0.24.0",
"typescript": "^5.7.0",
"vitest": "^2.1.0"
},
"repository": {
"type": "git",
"url": "https://github.com/srj31/bashle.git"
},
"bugs": {
"url": "https://github.com/srj31/bashle/issues"
}
}