Skip to content

Commit addaa22

Browse files
committed
Increased timeout
1 parent ed38f58 commit addaa22

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/extension.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,16 @@ async function status(): Promise<any> {
116116

117117
async 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
}

src/test/suite/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export function run(): Promise<void> {
66
// Create the mocha test
77
const mocha = new Mocha({
88
ui: 'tdd',
9-
timeout: 10000
9+
timeout: 30000
1010
});
1111

1212
const testsRoot = path.resolve(__dirname, '..');

0 commit comments

Comments
 (0)