-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
218 lines (218 loc) · 6.15 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
{
"name": "php-namespace-helper",
"displayName": "PHP Namespace Helper",
"description": "Import and expand php namespaces",
"version": "1.1.6",
"publisher": "vdhoangson",
"author": "vdhoangson",
"sponsor": {
"url": "https://github.com/sponsors/vdhoangson"
},
"pricing": "Free",
"license": "MIT",
"engines": {
"vscode": "^1.68.0"
},
"repository": {
"type": "git",
"url": "https://github.com/vdhoangson/vscode-php-namespace-helper"
},
"bugs": {
"url": "https://github.com/vdhoangson/vscode-php-namespace-helper/issues"
},
"categories": [
"Programming Languages",
"Other"
],
"keywords": [
"php",
"namespace",
"class",
"import",
"expand",
"resolver",
"helper"
],
"galleryBanner": {
"color": "#282c34",
"theme": "dark"
},
"activationEvents": [
"onLanguage:php",
"onCommand.phpNamespaceHelper.import",
"onCommand:phpNamespaceHelper.importAll",
"onCommand:phpNamespaceHelper.expand",
"onCommand:phpNamespaceHelper.sort",
"onCommand:phpNamespaceHelper.generateNamespace"
],
"main": "./out/extension",
"icon": "images/icon.png",
"contributes": {
"menus": {
"editor/context": [
{
"when": "resourceLangId == php",
"command": "phpNamespaceHelper.import",
"group": "vscode_php_namespace_helper@1"
},
{
"when": "resourceLangId == php",
"command": "phpNamespaceHelper.importAll",
"group": "vscode_php_namespace_helper@2"
},
{
"when": "resourceLangId == php",
"command": "phpNamespaceHelper.expand",
"group": "vscode_php_namespace_helper@3"
},
{
"when": "resourceLangId == php",
"command": "phpNamespaceHelper.sort",
"group": "vscode_php_namespace_helper@4"
},
{
"when": "resourceLangId == php",
"command": "phpNamespaceHelper.generateNamespace",
"group": "vscode_php_namespace_helper@7"
}
]
},
"commands": [
{
"title": "Import Class",
"command": "phpNamespaceHelper.import"
},
{
"title": "Import All Classes",
"command": "phpNamespaceHelper.importAll"
},
{
"title": "Expand Class",
"command": "phpNamespaceHelper.expand"
},
{
"title": "Sort Imports",
"command": "phpNamespaceHelper.sort"
},
{
"title": "Generate namespace for this file",
"command": "phpNamespaceHelper.generateNamespace"
}
],
"configuration": {
"title": "PHP Namespace Helper",
"properties": {
"phpNamespaceHelper.exclude": {
"type": [
"string",
"null"
],
"default": "**/node_modules/**",
"description": "Exclude glob pattern while finding files"
},
"phpNamespaceHelper.showMessageOnStatusBar": {
"type": "boolean",
"default": false,
"description": "Show message on status bar instead of notification box"
},
"phpNamespaceHelper.sort": {
"type": "string",
"enum": [
"length",
"natural",
"alphabet"
],
"default": "length",
"description": "Sort method"
},
"phpNamespaceHelper.sortOrder": {
"type": "string",
"enum": [
"ASC",
"DESC"
],
"default": "ASC",
"description": "Sort order for natural method"
},
"phpNamespaceHelper.autoSort": {
"type": "boolean",
"default": true,
"description": "Auto sort after imports"
},
"phpNamespaceHelper.sortOnSave": {
"type": "boolean",
"default": true,
"description": "Auto sort when a file is saved. It not work when you enable files.autoSave."
},
"phpNamespaceHelper.command": {
"type": "string",
"default": "php",
"description": "php command path"
},
"phpNamespaceHelper.leadingSeparator": {
"type": "boolean",
"default": true,
"description": "Expand class with leading namespace separator"
},
"phpNamespaceHelper.builtIns": {
"type": "array",
"default": [
"get_declared_classes()",
"get_declared_interfaces()"
],
"items": {
"type": "string"
},
"minItems": 1,
"uniqueItems": true,
"description": "php methods to get builtin/extension classes & interfaces"
},
"phpNamespaceHelper.namespacePrefix": {
"type": [
"string"
],
"default": "",
"markdownDescription": "Add a prefix for all generated namespaces\n\nEx.`My\\Project\\`"
},
"phpNamespaceHelper.removePath": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"minItems": 0,
"uniqueItems": true,
"markdownDescription": "remove parts from the namespace by regex\n\nex.`remove 'V[0-9]+(\\\\)?' from My\\Project\\V100400\\Folder`"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run esbuild-base -- --minify",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "eslint src --ext ts",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch"
},
"devDependencies": {
"@types/fs-extra": "^11.0.4",
"@types/node": "18.x",
"@types/vscode": "^1.68.0",
"@typescript-eslint/eslint-plugin": "^7.1",
"@typescript-eslint/parser": "^7.1",
"@vscode/test-electron": "^2.3.4",
"esbuild": "^0.20.1",
"eslint": "^8.47.0",
"glob": "^10.3.3",
"typescript": "^5.3.3"
},
"dependencies": {
"execa": "^8.0.1",
"find-up": "^7.0.0",
"fs-extra": "^11.2.0",
"natural-orderby": "^3.0.2",
"php-parser": "^3.1.5"
}
}