-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
174 lines (174 loc) · 5.69 KB
/
package.json
File metadata and controls
174 lines (174 loc) · 5.69 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
{
"publisher": "lnav",
"name": "lnav",
"displayName": "lnav",
"icon": "favicon.png",
"repository": {
"type": "git",
"url": "https://github.com/tstack/lnav-vscode.git"
},
"author": {
"name": "Tim Stack"
},
"license": "MIT",
"description": "Extension for Logfile Navigator scripts",
"version": "0.2.0",
"engines": {
"vscode": "^1.75.0"
},
"categories": [
"Programming Languages",
"Debuggers"
],
"contributes": {
"languages": [
{
"id": "lnav",
"aliases": [
"lnav"
],
"extensions": [
".lnav"
],
"configuration": "./language-configuration.json"
}
],
"breakpoints": [
{
"language": "cpp"
},
{
"language": "java"
},
{
"language": "rust"
}
],
"grammars": [
{
"language": "lnav",
"scopeName": "source.lnav",
"path": "./syntaxes/lnav.tmLanguage.json",
"embeddedLanguages": {
"meta.embedded.block.sqlite": "sqlite"
}
}
],
"commands": [
{
"command": "extension.lnav.selectLogFile",
"title": "Select Log File for lnav Debugger"
}
],
"debuggers": [
{
"type": "lnav",
"label": "lnav debugger",
"program": "./out/debugAdapter.js",
"runtime": "node",
"languages": [
"cpp",
"java",
"rust"
],
"configurationAttributes": {
"launch": {
"required": [
"logFile"
],
"properties": {
"logFile": {
"type": "string",
"description": "Path to the log file to open in lnav.",
"default": "${workspaceFolder}/example.log"
}
}
},
"attach": {
"required": [
"port",
"apiKey"
],
"properties": {
"port": {
"type": "number",
"description": "Port number for the debug server.",
"default": 8080
},
"apiKey": {
"type": "string",
"description": "API key for authentication with the debug server."
}
}
}
},
"initialConfigurations": [
{
"type": "lnav",
"request": "launch",
"name": "Launch lnav",
"logFile": "${workspaceFolder}/example.log"
},
{
"type": "lnav",
"request": "attach",
"name": "Attach to lnav",
"port": 8080,
"apiKey": "mysecret"
}
],
"configurationSnippets": [
{
"label": "Launch lnav with log file",
"description": "Launch lnav debugger and select a log file",
"body": {
"type": "lnav",
"request": "launch",
"name": "Launch lnav",
"logFile": "^\"${command:extension.lnav.selectLogFile}\""
}
}
]
}
]
},
"scripts": {
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "pnpm run compile && pnpm run lint",
"pretest:ci": "pnpm run pretest",
"lint": "eslint src --ext ts",
"typecheck": "tsc -p tsconfig.json --noEmit",
"test": "node ./out/test/runTest.js",
"test:ci": "xvfb-run -a node ./out/test/runTest.js",
"vscode:prepublish": "pnpm run esbuild-base --minify",
"esbuild-base": "esbuild ./src/extension.ts ./src/debugAdapter.ts --bundle --outdir=out --external:vscode --format=cjs --platform=node",
"esbuild": "pnpm run esbuild-base --sourcemap",
"esbuild-watch": "pnpm run esbuild-base --sourcemap --watch"
},
"devDependencies": {
"@types/mocha": "^10.0.2",
"@types/node": "24.3.3",
"@types/vscode": "^1.83.0",
"@typescript-eslint/eslint-plugin": "^8.30.1",
"@typescript-eslint/parser": "^8.30.1",
"@vscode/debugadapter-testsupport": "^1.56.0",
"@vscode/test-electron": "^2.3.4",
"@vscode/vsce": "^3.3.2",
"esbuild": "^0.25.4",
"eslint": "^9.24.0",
"glob": "^11.0.2",
"mocha": "11.7.2",
"typescript": "5.9.2",
"uuid": "^13.0.0"
},
"dependencies": {
"@vscode/debugadapter": "^1.68.0",
"@vscode/debugprotocol": "^1.68.0"
},
"activationEvents": [
"onDebug",
"onDebugResolve:lnav"
],
"main": "./out/extension.js"
}