-
Notifications
You must be signed in to change notification settings - Fork 51
/
package.json
243 lines (243 loc) · 5.83 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
{
"name": "vscode-vlang",
"displayName": "V",
"description": "V language support (syntax highlighting, formatter, snippets) for Visual Studio Code.",
"publisher": "vlanguage",
"icon": "icons/icon.png",
"version": "0.1.14",
"license": "MIT",
"engines": {
"vscode": "^1.40.0"
},
"extensionPack": ["ms-vscode.cpptools"],
"homepage": "https://vlang.io/",
"bugs": {
"url": "https://github.com/vlang/vscode-vlang/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/vlang/vscode-vlang"
},
"scripts": {
"compile": "node ./scripts/build.js",
"compile-dev": "node ./scripts/build.js --watch",
"lint": "eslint .",
"lintmd": "markdownlint *.md -i CHANGELOG.md",
"vscode:prepublish": "node ./scripts/minify_json.js && cross-env NODE_ENV=production node ./scripts/build.js",
"watch": "tsc -watch -p ./",
"package": "vsce package",
"postpackage": "node ./scripts/minify_json.js --restore",
"testgrammar": "vscode-tmgrammar-test -s source.v -g syntaxes/v.tmLanguage.json -t \"syntaxes/tests/*.v\""
},
"keywords": [
"V",
"v",
"v language",
"vlang",
"extension",
"autocompletion"
],
"categories": [
"Snippets",
"Programming Languages"
],
"contributes": {
"snippets": [
{
"language": "v",
"path": "snippets/snippets.json"
}
],
"languages": [
{
"id": "v",
"aliases": [
"V"
],
"extensions": [
".v",
".vsh",
".vv",
"v.mod"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "v",
"scopeName": "source.v",
"path": "./syntaxes/v.tmLanguage.json"
}
],
"configuration": {
"title": "V",
"properties": {
"v.executablePath": {
"scope": "resource",
"type": "string",
"description": "Custom path to the V compiler executable (`v`).\nNOTE: Setting this won't change the VROOT path in VLS."
},
"v.vls.debug": {
"scope": "resource",
"type": "boolean",
"description": "Enables / disables the language server's debug mode.\nSetting it to true will create a log file to your workspace folder for bug reports."
},
"v.vls.customVrootPath": {
"scope": "resource",
"type": "string",
"default": "",
"description": "Custom path to the V installation directory (VROOT).\nNOTE: Setting this won't change the V compiler executable to be used."
},
"v.vls.customPath": {
"scope": "resource",
"type": "string",
"default": "",
"description": "Custom path to the VLS (V Language Server) executable."
},
"v.vls.enable": {
"scope": "resource",
"type": "boolean",
"default": false,
"description": "Enables the language server. (alpha)"
},
"v.vls.enableFeatures": {
"scope": "resource",
"type": "string",
"description": "Enables specific language server features. Multiple values must be separated with a comma (,)."
},
"v.vls.disableFeatures": {
"scope": "resource",
"type": "string",
"description": "Disables specific language server features. Multiple values must be separated with a comma (,)."
},
"v.vls.connectionMode": {
"scope": "resource",
"type": "string",
"default": "stdio",
"enum": [
"stdio",
"tcp"
],
"description": "Specify the mode to be used when connecting to VLS.",
"enumDescriptions": [
"Connects to the language server via standard input/output. (Default)",
"Connects to the language server via TCP"
]
},
"v.vls.tcpMode.port": {
"scope": "resource",
"type": "number",
"default": 5007,
"description": "Port to be used when connecting to the language server. (Only in TCP mode)"
},
"v.vls.tcpMode.useRemoteServer": {
"scope": "resource",
"default": false,
"type": "boolean",
"description": "Connect to a remote server instead of launching a new local process. (Only in TCP mode)"
},
"v.vls.customArgs": {
"scope": "resource",
"type": "string",
"description": "Custom arguments to be passed to the VLS executable."
}
}
},
"configurationDefaults": {
"[v]": {
"editor.insertSpaces": false
}
},
"keybindings": [
{
"command": "v.fmt",
"key": "ctrl+i ctrl+i"
}
],
"commands": [
{
"command": "v.run",
"title": "Run current file",
"category": "V"
},
{
"command": "v.fmt",
"title": "Format current file",
"category": "V"
},
{
"command": "v.prod",
"title": "Build an optimized executable from current file",
"category": "V"
},
{
"command": "v.ver",
"title": "Show V version",
"category": "V"
},
{
"command": "v.vls.update",
"title": "Update VLS",
"category": "V"
},
{
"command": "v.vls.restart",
"title": "Restart VLS",
"category": "V"
}
],
"menus": {
"commandPalette": [
{
"command": "v.run",
"when": "editorLangId == v"
},
{
"command": "v.fmt",
"when": "editorLangId == v"
},
{
"command": "v.prod",
"when": "editorLangId == v"
},
{
"command": "v.vls.restart",
"when": "editorLangId == v && config.v.vls.enable"
}
]
},
"breakpoints": [
{
"language": "v"
}
]
},
"activationEvents": [
"workspaceContains:**/*.v",
"onLanguage:v",
"onCommand:v.run",
"onCommand:v.fmt",
"onCommand:v.prod",
"onCommand:v.ver",
"onCommand:v.vls.update",
"onCommand:v.vls.restart"
],
"main": "./out/extension.js",
"dependencies": {
"cross-env": "^7.0.3",
"esbuild": "^0.15.7",
"vscode-languageclient": "^7.0.0"
},
"devDependencies": {
"@types/node": "12",
"@types/vscode": "1.40.0",
"@typescript-eslint/eslint-plugin": "^4.33",
"@typescript-eslint/parser": "^4.33",
"eslint": "^7.32",
"markdownlint-cli": "^0.31.1",
"typescript": "^4.6.4",
"vsce": "^2.7.0",
"vscode-tmgrammar-test": "~0.0.11"
}
}