Skip to content

Commit f1b1d53

Browse files
committed
Show warning if phpactor not configured
1 parent b630601 commit f1b1d53

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/extension.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ export function deactivate() {
3030
}
3131

3232
function createClient(config: any): LanguageClient {
33+
if (!config.path) {
34+
vscode.window.showWarningMessage(
35+
'The path to Phpactor must be configured (e.g. phpactor, or /path/to/phpactor)"
36+
);
37+
return;
38+
}
3339
let serverOptions: ServerOptions = {
3440
run: {
3541
command: config.path,

0 commit comments

Comments
 (0)