-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathpackage.json
More file actions
249 lines (249 loc) · 8.41 KB
/
Copy pathpackage.json
File metadata and controls
249 lines (249 loc) · 8.41 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
{
"name": "bacon-ls-vscode",
"displayName": "Bacon Language Server",
"description": "Rust diagnostic based on Bacon",
"publisher": "MatteoBigoi",
"version": "0.30.0",
"private": true,
"icon": "img/icon.png",
"repository": {
"url": "https://github.com/crisidev/bacon-ls.git",
"type": "git"
},
"license": "MIT",
"keywords": [
"diagnostic",
"rust",
"lsp"
],
"categories": [
"Linters",
"Other"
],
"engines": {
"node": "^20.18.0",
"vscode": "^1.84.0"
},
"activationEvents": [
"onStartupFinished"
],
"main": "./out/main.js",
"contributes": {
"commands": [
{
"category": "BaconLs",
"command": "bacon-ls.restart",
"title": "Restart"
},
{
"category": "BaconLs",
"command": "bacon-ls.run",
"title": "Run check"
}
],
"configuration": {
"type": "object",
"title": "BaconLs",
"properties": {
"bacon-ls.path": {
"scope": "machine-overridable",
"type": "string",
"description": "Path to the `bacon-ls` binary. If empty the bundled binary will be used."
},
"bacon-ls.logLevel": {
"scope": "window",
"type": "string",
"enum": [
"off",
"error",
"warn",
"info",
"debug",
"trace"
],
"default": "off",
"markdownDescription": "Logging level of the language server. Logs will be saved in a file called bacon-ls.log if the level is not 'off'."
},
"bacon_ls.backend": {
"scope": "machine-overridable",
"type": "string",
"enum": [
"cargo",
"bacon"
],
"default": "cargo",
"markdownDescription": "Which backend produces diagnostics. Cannot be changed at runtime — restart the server to switch."
},
"bacon_ls.cargo.command": {
"scope": "machine-overridable",
"type": "string",
"enum": [
"check",
"clippy"
],
"default": "check",
"description": "Cargo backend: which cargo subcommand to run."
},
"bacon_ls.cargo.features": {
"scope": "machine-overridable",
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Cargo backend: list of cargo features (passed as --features a,b,c)."
},
"bacon_ls.cargo.package": {
"scope": "machine-overridable",
"type": [
"string",
"null"
],
"default": null,
"description": "Cargo backend: when set, passed as -p <package> (useful in workspaces)."
},
"bacon_ls.cargo.extraArgs": {
"scope": "machine-overridable",
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Cargo backend: extra arguments appended verbatim after the cargo subcommand."
},
"bacon_ls.cargo.env": {
"scope": "machine-overridable",
"type": "object",
"additionalProperties": {
"type": "string"
},
"default": {},
"description": "Cargo backend: extra environment variables (string -> string) for the cargo invocation."
},
"bacon_ls.cargo.cancelRunning": {
"scope": "machine-overridable",
"type": "boolean",
"default": true,
"description": "Cargo backend: cancel an in-flight run when a new one is triggered. When false, queue at most one follow-up run."
},
"bacon_ls.cargo.refreshIntervalSeconds": {
"scope": "machine-overridable",
"type": [
"integer",
"null"
],
"default": 5,
"description": "Cargo backend: partial publish interval in seconds. Set to null (or negative) to only publish once cargo has finished."
},
"bacon_ls.cargo.separateChildDiagnostics": {
"scope": "machine-overridable",
"type": [
"boolean",
"null"
],
"default": null,
"description": "Cargo backend: override 'related information' support. null = follow client capability; true = always emit children as standalone diagnostics; false = always nest them."
},
"bacon_ls.cargo.checkOnSave": {
"scope": "machine-overridable",
"type": "boolean",
"default": true,
"description": "Cargo backend: trigger cargo on file save."
},
"bacon_ls.cargo.clearDiagnosticsOnCheck": {
"scope": "machine-overridable",
"type": "boolean",
"default": false,
"description": "Cargo backend: clear existing diagnostics before each run."
},
"bacon_ls.bacon.locationsFile": {
"scope": "machine-overridable",
"type": "string",
"default": ".bacon-locations",
"description": "Bacon backend: bacon export file to read."
},
"bacon_ls.bacon.runInBackground": {
"scope": "machine-overridable",
"type": "boolean",
"default": true,
"description": "Bacon backend: start bacon automatically and tear it down on shutdown."
},
"bacon_ls.bacon.runInBackgroundCommand": {
"scope": "machine-overridable",
"type": "string",
"default": "bacon",
"description": "Bacon backend: command used to start bacon in the background."
},
"bacon_ls.bacon.runInBackgroundCommandArguments": {
"scope": "machine-overridable",
"type": "string",
"default": "--headless -j bacon-ls",
"description": "Bacon backend: command-line arguments passed to the background bacon process."
},
"bacon_ls.bacon.validatePreferences": {
"scope": "machine-overridable",
"type": "boolean",
"default": true,
"description": "Bacon backend: verify that bacon preferences contain a working bacon-ls job and matching export configuration."
},
"bacon_ls.bacon.createPreferencesFile": {
"scope": "machine-overridable",
"type": "boolean",
"default": true,
"description": "Bacon backend: when validation finds no preferences file, generate one with the bacon-ls job and export defined."
},
"bacon_ls.bacon.synchronizeAllOpenFilesWaitMillis": {
"scope": "machine-overridable",
"type": "integer",
"default": 2000,
"description": "Bacon backend: how often (in ms) the background loop re-publishes diagnostics for every open file."
},
"bacon_ls.bacon.updateOnSave": {
"scope": "machine-overridable",
"type": "boolean",
"default": true,
"description": "Bacon backend: re-publish diagnostics on file save."
},
"bacon_ls.bacon.updateOnSaveWaitMillis": {
"scope": "machine-overridable",
"type": "integer",
"default": 1000,
"description": "Bacon backend: delay in ms before reading the locations file after a save."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run esbuild-base -- --minify",
"package": "vsce package",
"esbuild-base": "esbuild ./vscode/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"build": "npm run esbuild-base -- --sourcemap",
"watch": "npm run esbuild-base -- --sourcemap --watch",
"lint": "prettier --check . && eslint",
"fix": "prettier --write . && eslint --fix",
"pretest": "tsc && npm run build",
"test": "cross-env BACON_LS_PATH=$PWD/target/debug/bacon-ls node ./out/test/runTest.js"
},
"devDependencies": {
"@stylistic/eslint-plugin": "^5.10.0",
"@types/glob": "^9.0.0",
"@types/mocha": "^10.0.10",
"@types/node": "26.x",
"@types/vscode": "^1.84.0",
"@typescript-eslint/eslint-plugin": "^8.68.0",
"@typescript-eslint/parser": "^8.31.1",
"@vscode/test-electron": "^3.1.0",
"@vscode/vsce": "^3.9.2",
"cross-env": "^10.1.0",
"esbuild": "^0.28.2",
"eslint": "^10.9.1",
"glob": "^13.0.6",
"mocha": "^11.8.0",
"ovsx": "^1.1.1",
"prettier": "^3.9.6",
"typescript": "^7.0.2"
},
"dependencies": {
"vscode-languageclient": "^10.1.0"
}
}