forked from tarantool/tarantool-lua-debugger-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
195 lines (195 loc) · 6.19 KB
/
package.json
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
{
"name": "tarantool-lua-debugger",
"publisher": "tarantooldb",
"version": "0.4.3",
"description": "Tarantool Lua Debugger - tarantool lua debugger with no dependencies",
"displayName": "Tarantool Lua Debugger",
"icon": "resources/tarantool-logo-small_128x128.png",
"repository": {
"type": "github",
"url": "https://github.com/tarantool/tarantool-lua-debugger-vscode.git"
},
"author": "usenko-timur@users.noreply.github.com",
"license": "MIT",
"categories": [
"Debuggers"
],
"keywords": [
"lua",
"luajit",
"tstl",
"typescripttolua",
"typescript-to-lua",
"tarantool"
],
"scripts": {
"lint-debugger": "cd debugger && eslint . && cd ..",
"lint-extension": "cd extension && eslint . && cd ..",
"lint": "npm run lint-debugger && npm run lint-extension",
"build-debugger": "tstl -p debugger",
"build-extension": "tsc -p extension",
"build": "npm run build-debugger && npm run build-extension",
"bundle": "npm run clean && npm run lint && npm run build && vsce package",
"publish": "npm run bundle && vsce publish",
"bump-patch": "npm version patch -m 'Preparing %s patch release'",
"bump-minor": "npm version minor -m 'Preparing %s minor release'",
"clean": "rm -f debugger/*.lua && rm -f debugger/*.lua.map && rm -f extension/*.js && rm -f extension/*.js.map && rm -f *.vsix"
},
"dependencies": {
"vscode-debugadapter": "^1.48.0"
},
"devDependencies": {
"@types/node": "^16.4.13",
"@types/vscode": "^1.44.0",
"@typescript-eslint/eslint-plugin": "^4.29.1",
"@typescript-eslint/parser": "^4.29.1",
"eslint": "^7.32.0",
"typescript": "^4.3.5",
"typescript-to-lua": "^1.1.1",
"vsce": "^1.96.1"
},
"main": "./extension/extension.js",
"engines": {
"vscode": "^1.44.0"
},
"activationEvents": [
"onDebug"
],
"contributes": {
"configuration": [
{
"title": "Tarantool Lua Debugger",
"properties": {
"lua-tarantool.interpreter": {
"type": "string",
"default": "tarantool",
"description": "Tarantool Lua stand-alone interpreter to use when none is specified in launch.json"
}
}
}
],
"breakpoints": [
{
"language": "lua"
}
],
"debuggers": [
{
"type": "lua-tarantool",
"label": "Tarantool Lua Debugger",
"program": "./extension/debugAdapter.js",
"runtime": "node",
"languages": [
"lua"
],
"initialConfigurations": [
{
"name": "Debug Tarantool Lua Interpreter",
"type": "lua-tarantool",
"request": "launch",
"program": {
"tarantool": "tarantool",
"file": "${file}"
},
"args": []
}
],
"configurationAttributes": {
"launch": {
"properties": {
"scriptRoots": {
"type": "array",
"items": {
"type": "string"
},
"description": "Alternate paths to find lua scripts"
},
"breakInCoroutines": {
"type": "boolean",
"description": "Break on errors inside of coroutines",
"default": true
},
"scriptFiles": {
"type": "array",
"items": {
"type": "string"
},
"description": "Glob pattern specifying Lua scripts to be debugged (required for breakpoints in source mapped files)"
},
"ignorePatterns": {
"type": "array",
"items": {
"type": "string"
},
"description": "Lua patterns specifying scripts to be ignored when stepping"
},
"stepUnmappedLines": {
"type": "boolean",
"description": "Step into lua when stepping through unmapped lines in source-mapped files",
"default": true
},
"verbose": {
"type": "boolean",
"description": "Enable verbose output",
"default": false
},
"stopOnEntry": {
"type": "boolean",
"description": "Pause debugging as soon as debugger attaches to program",
"default": false
},
"cwd": {
"type": "string",
"description": "Working directory to launch Lua in",
"default": "${workspaceFolder}"
},
"env": {
"type": "object",
"description": "Environment variables to set",
"additionalProperties": {
"type": "string"
}
},
"args": {
"type": "array",
"items": {
"type": "string"
},
"description": "Arguments to pass to the program",
"default": []
},
"program": {
"oneOf": [
{
"type": "object",
"properties": {
"tarantool": {
"type": "string",
"description": "Tarantool Lua stand-alone interpreter to use",
"default": "tarantool"
},
"file": {
"type": "string",
"description": "The entry point file of the program",
"default": "${file}"
},
"communication": {
"enum": [
"stdio",
"pipe"
],
"description": "Communication method between extension and debugger.",
"default": "stdio"
}
},
"additionalProperties": false
}
]
}
}
}
}
}
]
}
}