-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
142 lines (142 loc) · 3.13 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
{
"name": "go-struct-tag-autogen",
"displayName": "Go Struct Tag Autocomplete & Generator",
"description": "Customizable Go struct tag autocomplete & generator",
"keywords": [
"go",
"golang",
"struct",
"tag",
"auto",
"complete",
"autocomplete",
"suggestion",
"generate",
"json",
"bson"
],
"version": "1.1.2",
"publisher": "maxnatchanon",
"author": {
"name": "Natchanon A."
},
"icon": "assets/icon.png",
"engines": {
"vscode": "^1.64.0"
},
"license": "MIT",
"repository": {
"url": "https://github.com/maxnatchanon/vscode-go-struct-tag-autogen",
"type": "git"
},
"categories": [
"Programming Languages",
"Extension Packs",
"Other"
],
"activationEvents": [
"onLanguage:go"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "goStructTagAutogen.generateStructTags",
"title": "Go Tag Autogen: Generate Struct Tags"
}
],
"menus": {
"editor/context": [
{
"when": "resourceLangId == go",
"command": "goStructTagAutogen.generateStructTags",
"group": "goStructTagAutogen"
}
]
},
"keybindings": [
{
"command": "goStructTagAutogen.generateStructTags",
"mac": "ctrl+shift+t",
"when": "editorTextFocus"
}
],
"configuration": {
"title": "Go Struct Tag Autocomplete & Generator",
"properties": {
"goStructTagAutogen.tagSuggestion": {
"type": "object",
"default": {
"json": {
"cases": [
"camel"
],
"options": [
"-",
"omitempty"
]
},
"bson": {
"cases": [
"snake"
],
"options": [
"-",
"omitempty"
]
},
"binding": {
"options": [
"required"
]
}
},
"description": "Go struct tag suggestion config. Go to https://github.com/maxnatchanon/vscode-go-struct-tag-autogen for more detail."
},
"goStructTagAutogen.valueSuggestion": {
"type": "object",
"default": {
"json": [
"omitempty"
],
"bson": [
"omitempty"
],
"binding": [
"required"
]
},
"description": "Go struct tag value suggestion config. Go to https://github.com/maxnatchanon/vscode-go-struct-tag-autogen for more detail."
},
"goStructTagAutogen.generation": {
"type": "object",
"default": {
"template": "json:\"{{camel}}\" bson:\"{{snake}}\""
},
"description": "Go struct tag generation command config. Go to https://github.com/maxnatchanon/vscode-go-struct-tag-autogen for more detail."
}
}
}
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.0",
"@types/node": "14.x",
"@types/vscode": "^1.64.0",
"@typescript-eslint/eslint-plugin": "^5.12.1",
"@typescript-eslint/parser": "^5.12.1",
"@vscode/test-electron": "^2.1.2",
"eslint": "^8.9.0",
"glob": "^7.2.0",
"mocha": "^9.2.1",
"typescript": "^4.5.5"
}
}