This repository has been archived by the owner on Feb 19, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
package.json
254 lines (254 loc) · 7.33 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
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
{
"name": "zls-vscode",
"icon": "assets/icon-128.png",
"author": {
"name": "Auguste Rame",
"url": "https://augustera.me"
},
"publisher": "AugusteRame",
"displayName": "Zig Language Server (zls) for VSCode",
"description": "VSCode frontend for zls",
"repository": {
"type": "git",
"url": "https://github.com/zigtools/zls-vscode"
},
"version": "1.1.9",
"engines": {
"vscode": "^1.68.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:zig"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "zls.install",
"title": "Install Server",
"category": "Zig Language Server"
},
{
"command": "zls.startRestart",
"title": "Start / Restart Server",
"category": "Zig Language Server"
},
{
"command": "zls.stop",
"title": "Stop Server",
"category": "Zig Language Server"
},
{
"command": "zls.openconfig",
"title": "Open ZLS Config",
"category": "Zig Language Server"
},
{
"command": "zls.update",
"title": "Check for Server Updates",
"category": "Zig Language Server"
}
],
"configuration": {
"type": "object",
"title": "Zig Language Server",
"properties": {
"zls.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
},
"zls.check_for_update": {
"scope": "resource",
"type": "boolean",
"description": "Whether to automatically check for new updates",
"default": true
},
"zls.path": {
"scope": "resource",
"type": "string",
"description": "Path to `zls` executable. Example: `C:/zls/zig-cache/bin/zls.exe`.",
"format": "path"
},
"zls.debugLog": {
"scope": "resource",
"type": "boolean",
"description": "Enable debug logging in release builds of zls."
},
"zls.enable_snippets": {
"scope": "resource",
"type": "boolean",
"description": "Enables snippet completions when the client also supports them",
"default": false
},
"zls.enable_ast_check_diagnostics": {
"scope": "resource",
"type": "boolean",
"description": "Whether to enable ast-check diagnostics",
"default": true
},
"zls.enable_autofix": {
"scope": "resource",
"type": "boolean",
"description": "Whether to automatically fix errors on save. Currently supports adding and removing discards.",
"default": false
},
"zls.enable_import_embedfile_argument_completions": {
"scope": "resource",
"type": "boolean",
"description": "Whether to enable import/embedFile argument completions",
"default": false
},
"zls.enable_semantic_tokens": {
"scope": "resource",
"type": "boolean",
"description": "Enables semantic token support when the client also supports it",
"default": true
},
"zls.enable_inlay_hints": {
"scope": "resource",
"type": "boolean",
"description": "Enables inlay hint support when the client also supports it",
"default": false
},
"zls.inlay_hints_show_builtin": {
"scope": "resource",
"type": "boolean",
"description": "Enable inlay hints for builtin functions",
"default": true
},
"zls.inlay_hints_exclude_single_argument": {
"scope": "resource",
"type": "boolean",
"description": "Don't show inlay hints for single argument calls",
"default": true
},
"zls.inlay_hints_hide_redundant_param_names": {
"scope": "resource",
"type": "boolean",
"description": "Hides inlay hints when parameter name matches the identifier (e.g. foo: foo)",
"default": false
},
"zls.inlay_hints_hide_redundant_param_names_last_token": {
"scope": "resource",
"type": "boolean",
"description": "Hides inlay hints when parameter name matches the last token of a parameter node (e.g. foo: bar.foo, foo: &foo)",
"default": false
},
"zls.operator_completions": {
"scope": "resource",
"type": "boolean",
"description": "Enables `*` and `?` operators in completion lists",
"default": true
},
"zls.warn_style": {
"scope": "resource",
"type": "boolean",
"description": "Enables warnings for style guideline mismatches",
"default": false
},
"zls.highlight_global_var_declarations": {
"scope": "resource",
"type": "boolean",
"description": "Whether to highlight global var declarations",
"default": false
},
"zls.use_comptime_interpreter": {
"scope": "resource",
"type": "boolean",
"description": "Whether to use the comptime interpreter",
"default": false
},
"zls.include_at_in_builtins": {
"scope": "resource",
"type": "boolean",
"description": "Whether the @ sign should be part of the completion of builtins",
"default": false
},
"zls.skip_std_references": {
"scope": "resource",
"type": "boolean",
"description": "When true, skips searching for references in std. Improves lookup speed for functions in user's code. Renaming and go-to-definition will continue to work as is",
"default": false
},
"zls.max_detail_length": {
"scope": "resource",
"type": "integer",
"description": "The detail field of completions is truncated to be no longer than this (in bytes)",
"default": 1048576
},
"zls.builtin_path": {
"scope": "resource",
"type": "string",
"description": "Path to 'builtin;' useful for debugging, automatically set if let null",
"default": null
},
"zls.zig_lib_path": {
"scope": "resource",
"type": "string",
"description": "Zig library path, e.g. `/path/to/zig/lib/zig`, used to analyze std library imports",
"default": null
},
"zls.zig_exe_path": {
"scope": "resource",
"type": "string",
"description": "Zig executable path, e.g. `/path/to/zig/zig`, used to run the custom build runner. If `null`, zig is looked up in `PATH`. Will be used to infer the zig standard library path if none is provided",
"default": null
},
"zls.build_runner_path": {
"scope": "resource",
"type": "string",
"description": "Path to the `build_runner.zig` file provided by zls. null is equivalent to `${executable_directory}/build_runner.zig`",
"default": null
},
"zls.global_cache_path": {
"scope": "resource",
"type": "string",
"description": "Path to a directroy that will be used as zig's cache. null is equivalent to `${KnownFloders.Cache}/zls`",
"default": null
}
}
},
"languages": [
{
"id": "zig",
"extensions": [
".zig"
],
"configuration": "./language-configuration.json"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"watch": "tsc -watch -p ./"
},
"dependencies": {
"@types/mkdirp": "^1.0.2",
"axios": "^0.27.2",
"mkdirp": "^1.0.4",
"vscode-languageclient": "8.0.2-next.5",
"which": "^2.0.2"
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/node": "^18.0.0",
"@types/vscode": "^1.68.0",
"@types/which": "^2.0.1",
"@typescript-eslint/eslint-plugin": "^5.29.0",
"@typescript-eslint/parser": "^5.29.0",
"eslint": "^8.18.0",
"glob": "^8.0.3",
"typescript": "^4.7.4"
}
}