-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
221 lines (221 loc) · 7.75 KB
/
Copy pathpackage.json
File metadata and controls
221 lines (221 loc) · 7.75 KB
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
{
"name": "phpantom",
"displayName": "PHPantom",
"description": "Fast PHP language server with Laravel and PHPStan-aware type intelligence.",
"version": "0.6.0",
"publisher": "phpantom",
"license": "MIT",
"icon": "assets/spookaphant.png",
"galleryBanner": {
"color": "#1a1a2e",
"theme": "dark"
},
"repository": {
"type": "git",
"url": "https://github.com/PHPantom-dev/phpantom_vsix.git"
},
"bugs": {
"url": "https://github.com/PHPantom-dev/phpantom_vsix/issues"
},
"homepage": "https://github.com/PHPantom-dev/phpantom_vsix#readme",
"engines": {
"vscode": "^1.88.0"
},
"categories": [
"Programming Languages",
"Linters",
"Formatters"
],
"keywords": [
"php",
"laravel",
"drupal",
"lsp",
"phpstan",
"intellisense"
],
"activationEvents": [
"onLanguage:php",
"onLanguage:blade"
],
"main": "./dist/extension.js",
"extensionKind": [
"workspace"
],
"contributes": {
"languages": [
{
"id": "php",
"aliases": ["PHP"]
},
{
"id": "blade",
"aliases": ["Blade", "blade"],
"extensions": [".blade.php"],
"configuration": "./languages/blade-language-configuration.json"
}
],
"grammars": [
{
"language": "blade",
"scopeName": "text.html.php.blade",
"path": "./syntaxes/blade.tmLanguage.json",
"embeddedLanguages": {
"text.html": "html",
"text.html.basic": "html",
"source.php": "php",
"meta.embedded.block.php": "php",
"meta.embedded.line.php": "php",
"source.js": "javascript",
"source.js.embedded.html": "javascript",
"source.css": "css"
}
}
],
"commands": [
{
"command": "phpantom.restartServer",
"title": "PHPantom: Restart Language Server"
},
{
"command": "phpantom.showOutput",
"title": "PHPantom: Show Output"
},
{
"command": "phpantom.showServerVersion",
"title": "PHPantom: Show Server Version"
},
{
"command": "phpantom.checkForUpdate",
"title": "PHPantom: Check for Server Update"
},
{
"command": "phpantom.clearDownloadedServer",
"title": "PHPantom: Clear Downloaded Language Server"
},
{
"command": "phpantom.showLogViewer",
"title": "PHPantom: Show Logs"
},
{
"command": "phpantom.runArtisanCommand",
"title": "PHPantom: Run Artisan Command"
},
{
"command": "phpantom.newLaravelClass",
"title": "PHPantom: New Laravel Class..."
},
{
"command": "phpantom.showRouteList",
"title": "PHPantom: Show Route List"
},
{
"command": "phpantom.generateModelAnnotations",
"title": "PHPantom: Generate Model Annotations"
},
{
"command": "phpantom.regenerateModelAnnotations",
"title": "PHPantom: Regenerate Model Annotations"
}
],
"menus": {
"commandPalette": [
{
"command": "phpantom.runArtisanCommand",
"when": "workspaceFolderCount != 0"
},
{
"command": "phpantom.newLaravelClass",
"when": "workspaceFolderCount != 0"
},
{
"command": "phpantom.showRouteList",
"when": "workspaceFolderCount != 0"
},
{
"command": "phpantom.generateModelAnnotations",
"when": "workspaceFolderCount != 0"
},
{
"command": "phpantom.regenerateModelAnnotations",
"when": "workspaceFolderCount != 0"
}
],
"explorer/context": [
{
"command": "phpantom.newLaravelClass",
"when": "explorerResourceIsFolder && workspaceFolderCount != 0",
"group": "navigation@100"
}
]
},
"configuration": {
"title": "PHPantom",
"properties": {
"phpantom.serverPath": {
"type": "string",
"default": "",
"description": "Absolute path to a custom phpantom_lsp binary. When set, PHPantom will use this instead of PATH or the downloaded binary."
},
"phpantom.releaseTag": {
"type": "string",
"default": "latest",
"description": "GitHub release tag to download. Use latest to download the latest stable release."
},
"phpantom.autoDownload": {
"type": "boolean",
"default": true,
"description": "Automatically download phpantom_lsp if it is not configured and not found on PATH."
},
"phpantom.autoUpdate": {
"type": "boolean",
"default": true,
"description": "Automatically check for newer downloaded phpantom_lsp releases when phpantom.releaseTag is latest. Ignored when phpantom.serverPath is set."
},
"phpantom.updateCheckIntervalHours": {
"type": "number",
"default": 24,
"minimum": 1,
"maximum": 168,
"description": "How often to check for newer PHPantom language server releases while the extension is active. The extension also checks once on startup without blocking activation."
},
"phpantom.phpPath": {
"type": "string",
"default": "",
"scope": "resource",
"description": "Absolute path to the PHP executable used to run artisan commands. When empty, PHPantom uses php on your PATH. The language server itself never runs PHP; this is only for editor tooling like the Artisan command runner."
},
"phpantom.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Trace communication between VS Code/Cursor and the PHPantom language server."
}
}
}
},
"scripts": {
"compile": "node esbuild.js",
"watch": "node esbuild.js --watch",
"check": "tsc --noEmit",
"package": "vsce package",
"vscode:prepublish": "node esbuild.js"
},
"dependencies": {
"adm-zip": "^0.6.0",
"tar": "^7.4.3",
"vscode-languageclient": "^9.0.1"
},
"devDependencies": {
"@types/adm-zip": "^0.5.7",
"@types/node": "^20.0.0",
"@types/vscode": "1.88.0",
"@vscode/vsce": "^3.2.2",
"esbuild": "^0.28.0",
"typescript": "^5.0.0"
}
}