-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
280 lines (280 loc) · 8.12 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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
{
"name": "gno",
"displayName": "Gno",
"version": "0.1.0",
"preview": false,
"publisher": "harry-hov",
"description": "Gno language support for Visual Studio Code",
"author": {
"name": "Hariom Verma"
},
"license": "MIT",
"icon": "media/gno-logo.png",
"repository": {
"type": "git",
"url": "https://github.com/harry-hov/vscode-gno"
},
"bugs": {
"url": "https://github.com/harry-hov/vscode-gno/issues"
},
"categories": [
"Programming Languages",
"Snippets",
"Formatters"
],
"engines": {
"vscode": "^1.74.0"
},
"main": "./out/main.js",
"activationEvents": [
"onLanguage:gno",
"workspaceContains:*.gno",
"workspaceContains:*/*.gno",
"workspaceContains:*/*/*.gno",
"onCommand:gno.welcome"
],
"contributes": {
"languages": [
{
"id": "gno",
"aliases": [
"Gnolang",
"gno"
],
"extensions": [
".gno"
],
"configuration": "./language-configuration.json",
"icon": {
"dark": "media/gno-logo-white.png",
"light": "media/gno-logo-black.png"
}
},
{
"id": "gno.mod",
"filenames": [
"gno.mod"
],
"aliases": [
"Gno Module File"
],
"configuration": "./languages/gno.mod.language-configuration.json"
}
],
"grammars": [
{
"language": "gno",
"scopeName": "source.gno",
"path": "./syntaxes/gno.tmLanguage.json"
},
{
"language": "gno.mod",
"scopeName": "gno.mod",
"path": "./syntaxes/gno.mod.tmGrammar.json"
}
],
"snippets": [
{
"language": "gno",
"path": "./snippets/gno.json"
}
],
"configuration": {
"type": "object",
"title": "Gno",
"properties": {
"gno.transpileOnSave": {
"type": "boolean",
"default": false,
"description": "Transpiles code to Go on file save using 'gno transpile'."
},
"gno.formatTool": {
"type": "string",
"default": "gofumpt",
"markdownDescription": "When the language server is enabled and one of `gofmt`/`gofumpt` can be chosen.",
"scope": "resource",
"enum": [
"default",
"gofmt",
"gofumpt"
],
"markdownEnumDescriptions": [
"Format via the gofumpt.",
"use gofmt to format the file.",
"Stricter version of gofmt, see https://github.com/mvdan/gofumpt."
]
},
"gno.gnoroot": {
"type": "string",
"default": "",
"description": "Specifies the GNOROOT to use when no environment variable is set.",
"scope": "machine-overridable"
},
"gno.useLanguageServer": {
"type": "boolean",
"default": true,
"description": "Use the Gno language server \"gnopls\" for powering language features like code navigation, completion, refactoring, formatting & diagnostics."
},
"gno.languageServerExperimentalFeatures": {
"type": "object",
"properties": {
"diagnostics": {
"type": "boolean",
"default": true,
"description": "If true, the language server will provide transpile and build errors."
}
},
"additionalProperties": false,
"default": {
"diagnostics": true
},
"markdownDescription": "Temporary flag to enable/disable diagnostics from the language server."
},
"gno.enableCodeLens": {
"type": "object",
"properties": {
"runtest": {
"type": "boolean",
"default": true,
"description": "If true, enables code lens for running and debugging tests"
}
},
"additionalProperties": false,
"default": {
"runtest": true
},
"description": "Feature level setting to enable/disable code lens for references and run/debug tests",
"scope": "resource"
},
"gno.makeTx": {
"type": "object",
"properties": {
"broadcast": {
"type": "boolean",
"default": true,
"description": "If true, broadcasts transaction to chain"
},
"gasFee": {
"type": "string",
"default": "1000000ugnot",
"description": "Gas fee for transaction"
},
"gasWanted": {
"type": "string",
"default": "2000000",
"description": "Gas wanted for transaction"
}
},
"additionalProperties": false,
"default": {
"broadcast": true,
"gasFee": "1000000ugnot",
"gasWanted": "4000000"
},
"description": "",
"scope": "resource"
},
"gnopls": {
"type": "object",
"markdownDescription": "Configure the default Gno language server ('gnopls').",
"scope": "resource",
"properties": {
"GNOROOT":{
"type": "string",
"default": "",
"markdownDescription": "path to cloned gno repository",
"scope": "machine-overridable"
},
"build.env": {
"type": "object",
"markdownDescription": "env adds environment variables to external commands run by `gnopls`.",
"scope": "resource"
},
"formatting.gofumpt": {
"type": "boolean",
"markdownDescription": "gofumpt indicates if we should run gofumpt formatting.",
"default": true,
"scope": "resource"
}
}
}
}
},
"configurationDefaults": {
"[gno]": {
"editor.insertSpaces": false,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
"editor.suggest.snippetsPreventQuickSuggestions": false
}
},
"commands": [
{
"command": "gno.welcome",
"title": "Gno: Welcome",
"description": "Open the welcome page for the Gno extension."
},
{
"command": "gno.languageserver.restart",
"title": "Gno: Restart Language Server",
"description": "Restart the running instance of the language server."
},
{
"command": "gno.format",
"title": "Gno: Format Document",
"description": "Use `gofumpt` to format .gno file."
},
{
"command": "gno.transpile",
"title": "Gno: Transpile",
"description": "Use `gno transpile` to transpile .gno file with imports."
},
{
"command": "gno.clean",
"title": "Gno: Clean",
"description": "Cleans generated Go(*.gno.gen.go) files."
},
{
"command": "gno.test.package",
"title": "Gno: Test Package",
"description": "Use `gno test` to test Gno package."
},
{
"command": "gno.test.file",
"title": "Gno: Test File",
"description": "Use `gno test` to test *_test.gno file."
},
{
"command": "gno.test.function",
"title": "Gno: Test Function",
"description": "Use `gno test` to test a function in *_test.gno file."
},
{
"command": "gno.mod.init",
"title": "Gno: Mod Init",
"description": "Creates gno.mod file in root of workspace."
},
{
"command": "gno.maketx.addpkg",
"title": "Gno: Publish Package (unsafe)",
"description": "Use `gnokey maketx addpkg` to publish package to chain."
}
]
},
"dependencies": {
"dayjs": "^1.11.7",
"vscode-languageclient": "8.0.1",
"vscode-languageserver-protocol": "3.17.1",
"tree-kill": "file:third_party/tree-kill",
"web-request": "1.0.7"
},
"devDependencies": {
"@types/node": "13.13.46",
"@types/vscode": "1.67.0",
"esbuild": "0.12.21",
"prettier": "2.2.1",
"typescript": "^4.9.4"
}
}