-
Notifications
You must be signed in to change notification settings - Fork 29
/
package.json
143 lines (143 loc) · 5.04 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
{
"name": "vscode-php-getters-setters",
"displayName": "PHP Getters & Setters",
"description": "Create PHP getters and setters from class properties",
"version": "1.2.3",
"publisher": "phproberto",
"author": "Roberto Segura <[email protected]>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/phproberto/vscode-php-getters-setters"
},
"bugs": {
"url": "https://github.com/phproberto/vscode-php-getters-setters/issues"
},
"icon": "images/icon.png",
"engines": {
"vscode": "^1.18.0"
},
"categories": [
"Other"
],
"keywords": [
"php",
"getter",
"getters",
"setter",
"setters"
],
"activationEvents": [
"onLanguage:php",
"onCommand:phpGettersSetters.insertGetter",
"onCommand:phpGettersSetters.insertSetter",
"onCommand:phpGettersSetters.insertGetterAndSetter"
],
"main": "./out/extension",
"contributes": {
"configuration": {
"type": "object",
"title": "PHP getters & setters configuration",
"properties": {
"phpGettersSetters.redirect": {
"type": "boolean",
"default": true,
"description": "Redirect to generated functions after creating them?"
},
"phpGettersSetters.spacesAfterParam": {
"type": "integer",
"default": 2,
"description": "How many spaces should we add after a @param tag?"
},
"phpGettersSetters.spacesAfterParamVar": {
"type": "integer",
"default": 2,
"description": "How many spaces should we add after a @param variable name?"
},
"phpGettersSetters.spacesAfterReturn": {
"type": "integer",
"default": 2,
"description": "How many spaces should we add after a @return tag?"
},
"phpGettersSetters.templatesDir": {
"type": ["string", "null"],
"default": null,
"description": "Folder where custom templates are stored"
},
"phpGettersSetters.getterTemplate": {
"type": "string",
"default": "getter.js",
"description": "File to use as template for getters"
},
"phpGettersSetters.setterTemplate": {
"type": "string",
"default": "setter.js",
"description": "File to use as template for setters"
}
}
},
"commands": [
{
"command": "phpGettersSetters.insertGetter",
"title": "Insert PHP Getter"
},
{
"command": "phpGettersSetters.insertSetter",
"title": "Insert PHP Setter"
},
{
"command": "phpGettersSetters.insertGetterAndSetter",
"title": "Insert PHP Getter & Setter"
}
],
"menus": {
"commandPalette": [
{
"command": "phpGettersSetters.insertGetter",
"when": "editorLangId == php"
},
{
"command": "phpGettersSetters.insertSetter",
"when": "editorLangId == php"
},
{
"command": "phpGettersSetters.insertGetterAndSetter",
"when": "editorLangId == php"
}
],
"editor/context": [
{
"when": "resourceLangId == php",
"command": "phpGettersSetters.insertGetter",
"alt": "phpGettersSetters.insertGetter",
"group": "0_phpGettersSetters@1"
},
{
"when": "resourceLangId == php",
"command": "phpGettersSetters.insertSetter",
"alt": "phpGettersSetters.insertSetter",
"group": "0_phpGettersSetters@2"
},
{
"when": "resourceLangId == php",
"command": "phpGettersSetters.insertGetterAndSetter",
"alt": "phpGettersSetters.insertGetterAndSetter",
"group": "0_phpGettersSetters@3"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "npm run compile && node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"typescript": "^2.6.1",
"vscode": "^1.1.6",
"@types/node": "^7.0.43",
"@types/mocha": "^2.2.42"
}
}