Repository navigation
Expand file tree
/
Copy pathplugin.yaml
More file actions
221 lines (217 loc) · 6.57 KB
/
Copy pathplugin.yaml
File metadata and controls
221 lines (217 loc) · 6.57 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
id: lumide_php
name: 'PHP'
description: 'PHP language support (Intelephense, Phpactor) and development tools (Composer, PHPUnit, Built-in Server) for Lumide IDE.'
entry_point: 'bin/main.dart'
activation_events:
- 'workspaceContains:composer.json'
- 'workspaceContains:composer.lock'
- 'workspaceContains:phpunit.xml'
- 'workspaceContains:phpunit.xml.dist'
- 'workspaceContains:*.php'
- 'workspaceContains:*.phtml'
- 'onCommand:php.toolsMenu'
- 'onCommand:php.restartLsp'
- 'onCommand:php.selectLsp'
- 'onCommand:php.installIntelephense'
- 'onCommand:php.installPhpactor'
- 'onCommand:php.lintFile'
- 'onCommand:php.formatFile'
- 'onCommand:php.server.start'
- 'onCommand:php.server.stop'
- 'onCommand:php.server.restart'
- 'onCommand:php.server.openBrowser'
- 'onCommand:php.stop'
- 'onCommand:php.test.runAll'
- 'onCommand:php.newFile'
- 'onCommand:php.runFile'
- 'onCommand:php.test.runActiveFile'
- 'onCommand:composer.install'
- 'onCommand:composer.update'
- 'onCommand:composer.dumpAutoload'
- 'onCommand:composer.validate'
- 'onCommand:composer.requirePackage'
- 'onCommand:composer.runScript'
permissions:
- network:
- github.com
- objects.githubusercontent.com
- fileSystem:
- '${workspace}/**'
- '${home}/.local/bin/**'
- shell:
- php
- intelephense
- phpactor
- ~/.local/bin/phpactor
- /usr/local/bin/phpactor
- /opt/homebrew/bin/phpactor
- php-language-server
- composer
- npm
- node
- npx
- vendor/bin/phpunit
- phpunit
- vendor/bin/pest
- pest
- vendor/bin/pint
- pint
- vendor/bin/php-cs-fixer
- php-cs-fixer
- vendor/bin/phpstan
- phpstan
- which
- where
- open
- chmod
- curl
- mkdir
configuration:
- key: php.lsp.server
type: string
default: 'auto'
enum:
- auto
- intelephense
- phpactor
- php-language-server
- custom
title: 'Preferred PHP Language Server'
description: 'Register all discovered servers, with this server first. Auto prefers Intelephense, then Phpactor. Manage enabled servers in Lumide’s LSP & Agents panel. Reload the PHP plugin after changing this preference.'
- key: php.lsp.path
type: filePath
title: 'Custom LSP Executable Path'
description: 'Additional custom PHP server executable, launched with --stdio. Reload the PHP plugin after changing this path.'
- key: php.executablePath
type: filePath
title: 'PHP Executable Path'
description: 'Path to the php binary. If empty, the system PATH is used.'
- key: php.composer.path
type: filePath
title: 'Composer Executable Path'
description: 'Path to the composer binary. If empty, the system PATH is used.'
- key: php.devServer.host
type: string
default: '127.0.0.1'
title: 'Built-in Server Host'
description: 'Host address for the PHP built-in web server.'
- key: php.devServer.port
type: number
default: 8000
title: 'Built-in Server Port'
description: 'Port for the PHP built-in web server.'
- key: php.devServer.documentRoot
type: string
default: ''
title: 'Built-in Server Document Root'
description: 'Document root folder for PHP built-in web server (e.g. public, web, or empty for workspace root).'
- key: php.formatter
type: string
default: 'auto'
enum:
- auto
- pint
- php-cs-fixer
- lsp
title: 'PHP Formatter'
description: 'Formatter for Format Document: auto (Pint, then PHP-CS-Fixer), pint, php-cs-fixer, or lsp to use the language server.'
- key: php.lint.onSave
type: boolean
default: true
title: 'Lint on Save'
description: 'Run php -l when a PHP file is opened or saved. Skipped while a language server is running, since it already reports syntax errors.'
- key: php.phpstan.enabled
type: boolean
default: true
title: 'PHPStan on Save'
description: 'Run PHPStan on saved files when the project has a phpstan.neon config.'
- key: php.intelephense.licenceKey
type: string
default: ''
title: 'Intelephense Licence Key'
description: 'Optional premium licence key for Intelephense.'
contributes:
launchProviders:
- id: php
title: 'PHP'
workspacePatterns:
- composer.json
- phpunit.xml
- phpunit.xml.dist
- '*.php'
- '*.phtml'
kinds:
- run
- test
defaultKinds:
- run
- test
icon: 'play'
priority: 90
commands:
- id: php.toolsMenu
title: 'PHP: Tools & Language Server Menu'
category: 'PHP'
- id: php.installIntelephense
title: 'PHP: Install Intelephense Language Server (npm)'
category: 'PHP'
- id: php.installPhpactor
title: 'PHP: Install Phpactor Language Server (Standalone PHAR)'
category: 'PHP'
- id: php.restartLsp
title: 'PHP: Language Server Status'
category: 'PHP'
- id: php.selectLsp
title: 'PHP: Discover Language Servers'
category: 'PHP'
- id: php.lintFile
title: 'PHP: Lint Active File (php -l)'
category: 'PHP'
- id: php.formatFile
title: 'PHP: Format Active File (Pint / PHP-CS-Fixer)'
category: 'PHP'
- id: php.server.start
title: 'PHP: Start Built-in Web Server'
category: 'PHP'
- id: php.server.stop
title: 'PHP: Stop Built-in Web Server'
category: 'PHP'
- id: php.server.restart
title: 'PHP: Restart Built-in Web Server'
category: 'PHP'
- id: php.server.openBrowser
title: 'PHP: Open Server in Browser'
category: 'PHP'
- id: php.stop
title: 'PHP: Stop Running Process'
category: 'PHP'
- id: php.test.runAll
title: 'PHP: Run All Tests (PHPUnit / Pest)'
category: 'PHP'
- id: php.newFile
title: 'PHP: New PHP File'
category: 'PHP'
- id: php.runFile
title: 'PHP: Run PHP File'
category: 'PHP'
- id: php.test.runActiveFile
title: 'PHP: Run Current Test File'
category: 'PHP'
- id: composer.install
title: 'Composer: Install'
category: 'Composer'
- id: composer.update
title: 'Composer: Update'
category: 'Composer'
- id: composer.dumpAutoload
title: 'Composer: Dump Autoload'
category: 'Composer'
- id: composer.validate
title: 'Composer: Validate composer.json'
category: 'Composer'
- id: composer.requirePackage
title: 'Composer: Require Package'
category: 'Composer'
- id: composer.runScript
title: 'Composer: Run Script...'
category: 'Composer'