Skip to content

Commit 9e216af

Browse files
committed
Only show "Phpactor Installation" when installing Phpactor
1 parent 4bdc2f5 commit 9e216af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,15 @@ async function status(): Promise<any> {
115115
}
116116

117117
async function installPhpactor(storagePath: string): Promise<string> {
118-
const channel = vscode.window.createOutputChannel("Phpactor Installation")
119-
vscode.window.showInformationMessage("Installing Phpactor")
120118
if (!existsSync(storagePath)) {
121119
mkdirSync(storagePath)
122120
}
123121

124122
const path = `${storagePath}/phpactor`
125123

126124
if (!existsSync(path)) {
125+
const channel = vscode.window.createOutputChannel("Phpactor Installation")
126+
vscode.window.showInformationMessage("Installing Phpactor")
127127
await exec(channel, 'git', ['clone', 'https://github.com/phpactor/phpactor', '--depth=1'], storagePath)
128128
await exec(channel, 'composer', ['install', '--no-dev'], path)
129129
vscode.window.showInformationMessage(`Phpactor installed at ${path}`)

0 commit comments

Comments
 (0)