@@ -116,15 +116,16 @@ async function status(): Promise<any> {
116116
117117async function installPhpactor ( storagePath : string ) : Promise < string > {
118118 const channel = vscode . window . createOutputChannel ( "Phpactor Installation" )
119+ vscode . window . showInformationMessage ( "Installing Phpactor" )
119120 if ( ! existsSync ( storagePath ) ) {
120121 mkdirSync ( storagePath )
121122 }
122123
123124 const path = `${ storagePath } /phpactor`
124125
125126 if ( ! existsSync ( path ) ) {
126- await exec ( channel , 'git' , [ 'clone' , 'https://github.com/phpactor/phpactor' ] , storagePath )
127- await exec ( channel , 'composer' , [ 'install' ] , path )
127+ await exec ( channel , 'git' , [ 'clone' , 'https://github.com/phpactor/phpactor' , '--depth=1' ] , storagePath )
128+ await exec ( channel , 'composer' , [ 'install' , '--no-dev' ] , path )
128129 vscode . window . showInformationMessage ( `Phpactor installed at ${ path } ` )
129130 }
130131
@@ -135,7 +136,7 @@ export async function updatePhpactor(): Promise<void> {
135136 const channel = vscode . window . createOutputChannel ( 'Phpactor Update' )
136137 channel . appendLine ( this . cwd )
137138 await exec ( channel , 'git' , [ 'pull' ] , this . cwd )
138- await exec ( channel , 'composer' , [ 'install' ] , this . cwd )
139+ await exec ( channel , 'composer' , [ 'install' , '--no-dev' ] , this . cwd )
139140 channel . appendLine ( "Phpactor updated" )
140141 vscode . window . showInformationMessage ( "Phpactor updated" )
141142}
0 commit comments