File tree Expand file tree Collapse file tree 3 files changed +21
-7
lines changed Expand file tree Collapse file tree 3 files changed +21
-7
lines changed Original file line number Diff line number Diff line change 77
77
" herd" ,
78
78
" valet" ,
79
79
" sail" ,
80
+ " lando" ,
80
81
" local"
81
82
],
82
83
"enumItemLabels" : [
83
84
" Auto Detect" ,
84
85
" Herd" ,
85
86
" Valet" ,
86
87
" Sail" ,
88
+ " Lando" ,
87
89
" Local"
88
90
],
89
91
"markdownEnumDescriptions" : [
90
92
" Auto detect the local PHP environment." ,
91
93
" Auto detect PHP version Herd is using for the project." ,
92
94
" Auto detect PHP version Valet is using for the project." ,
93
95
" Sail" ,
96
+ " Lando" ,
94
97
" Use PHP installed on the local machine."
95
98
],
96
99
"default" : " auto" ,
Original file line number Diff line number Diff line change @@ -22,4 +22,10 @@ export const configAffected = (
22
22
...keys : ConfigKey [ ]
23
23
) : boolean => keys . some ( ( key ) => event . affectsConfiguration ( configKey ( key ) ) ) ;
24
24
25
- export type PhpEnvironment = "auto" | "herd" | "valet" | "sail" | "local" ;
25
+ export type PhpEnvironment =
26
+ | "auto"
27
+ | "herd"
28
+ | "valet"
29
+ | "sail"
30
+ | "local"
31
+ | "lando" ;
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ let hasVendor = projectPathExists("vendor/autoload.php");
30
30
const hasBootstrap = projectPathExists ( "bootstrap/app.php" ) ;
31
31
32
32
let phpEnvKey : PhpEnvironment | null = null ;
33
- const phpEnvsThatUseRelativePaths : PhpEnvironment [ ] = [ "sail" ] ;
33
+ const phpEnvsThatUseRelativePaths : PhpEnvironment [ ] = [ "sail" , "lando" ] ;
34
34
35
35
export const initVendorWatchers = ( ) => {
36
36
// fs.readdirSync(internalVendorPath()).forEach((file) => {
@@ -109,16 +109,21 @@ const getPhpCommand = (): string => {
109
109
command : `"{binaryPath}"` ,
110
110
} ) ;
111
111
112
- options . set ( "local" , {
113
- check : "php -r 'echo PHP_BINARY;'" ,
114
- command : `"{binaryPath}"` ,
115
- } ) ;
116
-
117
112
options . set ( "sail" , {
118
113
check : "./vendor/bin/sail ps" ,
119
114
command : "./vendor/bin/sail php" ,
120
115
} ) ;
121
116
117
+ options . set ( "lando" , {
118
+ check : "lando php -r 'echo PHP_BINARY;'" ,
119
+ command : "lando php" ,
120
+ } ) ;
121
+
122
+ options . set ( "local" , {
123
+ check : "php -r 'echo PHP_BINARY;'" ,
124
+ command : `"{binaryPath}"` ,
125
+ } ) ;
126
+
122
127
for ( const [ key , option ] of options . entries ( ) ) {
123
128
if ( phpEnv !== "auto" && phpEnv !== key ) {
124
129
continue ;
You can’t perform that action at this time.
0 commit comments