forked from MehediDracula/PHP-Namespace-Resolver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
220 lines (220 loc) · 7.8 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
{
"name": "php-namespace-resolver",
"displayName": "PHP Namespace Resolver",
"description": "Import and expand php namespaces",
"version": "1.1.8",
"publisher": "MehediDracula",
"author": "Mehedi Hassan <[email protected]>",
"license": "SEE LICENSE IN LICENSE",
"engines": {
"vscode": "^1.15.0"
},
"categories": [
"Other"
],
"keywords": [
"php",
"namespace",
"class",
"import",
"expand"
],
"galleryBanner": {
"color": "#282c34",
"theme": "dark"
},
"activationEvents": [
"onLanguage:php",
"onCommand:namespaceResolver.import",
"onCommand:namespaceResolver.importAll",
"onCommand:namespaceResolver.expand",
"onCommand:namespaceResolver.sort",
"onCommand:namespaceResolver.highlightNotImported",
"onCommand:namespaceResolver.highlightNotUsed",
"onCommand:namespaceResolver.generateNamespace"
],
"main": "./src/extension",
"icon": "images/icon.png",
"contributes": {
"menus": {
"editor/context": [
{
"when": "resourceLangId == php",
"command": "namespaceResolver.import",
"alt": "namespaceResolver.import",
"group": "0_namespace_resolver@1"
},
{
"when": "resourceLangId == php",
"command": "namespaceResolver.importAll",
"alt": "namespaceResolver.importAll",
"group": "0_namespace_resolver@2"
},
{
"when": "resourceLangId == php",
"command": "namespaceResolver.expand",
"alt": "namespaceResolver.expand",
"group": "0_namespace_resolver@3"
},
{
"when": "resourceLangId == php",
"command": "namespaceResolver.sort",
"alt": "namespaceResolver.sort",
"group": "0_namespace_resolver@4"
},
{
"when": "resourceLangId == php",
"command": "namespaceResolver.highlightNotImported",
"alt": "namespaceResolver.highlightNotImported",
"group": "0_namespace_resolver@5"
},
{
"when": "resourceLangId == php",
"command": "namespaceResolver.highlightNotUsed",
"alt": "namespaceResolver.highlightNotUsed",
"group": "0_namespace_resolver@6"
},
{
"when": "resourceLangId == php",
"command": "namespaceResolver.generateNamespace",
"alt": "namespaceResolver.generateNamespace",
"group": "0_namespace_resolver@7"
}
]
},
"configuration": {
"type": "object",
"title": "PHP Namespace Resolver extension configuration",
"properties": {
"namespaceResolver.exclude": {
"type": "string",
"default": "**/node_modules/**",
"description": "Exclude glob pattern while finding files"
},
"namespaceResolver.showMessageOnStatusBar": {
"type": "boolean",
"default": false,
"description": "Show message on status bar instead of notification box"
},
"namespaceResolver.autoSort": {
"type": "boolean",
"default": true,
"description": "Auto sort after imports"
},
"namespaceResolver.sortOnSave": {
"type": "boolean",
"default": false,
"description": "Auto sort when a file is saved"
},
"namespaceResolver.sortAlphabetically": {
"type": "boolean",
"default": false,
"description": "Sort imports in alphabetical order instead of line length"
},
"namespaceResolver.sortNatural": {
"type": "boolean",
"default": false,
"description": "Sort imports using a 'natural order' algorithm"
},
"namespaceResolver.leadingSeparator": {
"type": "boolean",
"default": true,
"description": "Expand class with leading namespace separator"
},
"namespaceResolver.highlightOnSave": {
"type": "boolean",
"default": false,
"description": "Auto highlight not imported and not used when a file is saved"
},
"namespaceResolver.highlightOnOpen": {
"type": "boolean",
"default": false,
"description": "Auto highlight not imported and not used when a file is opened"
}
}
},
"commands": [
{
"title": "Import Class",
"command": "namespaceResolver.import"
},
{
"title": "Import All Classes",
"command": "namespaceResolver.importAll"
},
{
"title": "Expand Class",
"command": "namespaceResolver.expand"
},
{
"title": "Sort Imports",
"command": "namespaceResolver.sort"
},
{
"title": "Highlight Not Imported Classes",
"command": "namespaceResolver.highlightNotImported"
},
{
"title": "Highlight Not Used Classes",
"command": "namespaceResolver.highlightNotUsed"
},
{
"title": "Generate namespace for this file",
"command": "namespaceResolver.generateNamespace"
}
],
"keybindings": [
{
"command": "namespaceResolver.import",
"key": "ctrl+alt+i",
"when": "editorTextFocus"
},
{
"command": "namespaceResolver.importAll",
"key": "ctrl+alt+a",
"when": "editorTextFocus"
},
{
"command": "namespaceResolver.expand",
"key": "ctrl+alt+e",
"when": "editorTextFocus"
},
{
"command": "namespaceResolver.sort",
"key": "ctrl+alt+s",
"when": "editorTextFocus"
},
{
"command": "namespaceResolver.highlightNotImported",
"key": "ctrl+alt+n",
"when": "editorTextFocus"
},
{
"command": "namespaceResolver.highlightNotUsed",
"key": "ctrl+alt+u",
"when": "editorTextFocus"
},
{
"command": "namespaceResolver.generateNamespace",
"key": "ctrl+alt+g",
"when": "editorTextFocus"
}
]
},
"repository": {
"type": "git",
"url": "https://github.com/MehediDracula/PHP-Namespace-Resolver"
},
"bugs": {
"url": "https://github.com/MehediDracula/PHP-Namespace-Resolver/issues"
},
"scripts": {
"postinstall": "node ./node_modules/vscode/bin/install"
},
"devDependencies": {
"vscode": "^1.0.0"
},
"dependencies": {
"node-natural-sort": "^0.8.6"
}
}