Skip to content

Commit

Permalink
Keep installation popup open until server is successfully installed
Browse files Browse the repository at this point in the history
This prevents closing it and reopening it every time the installation 
fails and also makes it consistent with the "Test my setup" flow.

References #460
  • Loading branch information
Gert-dev committed Sep 14, 2019
1 parent 5226a17 commit 2f8d94a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/SerenataClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ class SerenataClient extends AutoLanguageClient
{
text: 'Yes',
onDidClick: () => {
notification.dismiss();

const callback = async () => {
if (!await this.installServer()) {
return await this.installServerIfNecessary();
reject(new Error('Server installation failed'));
return;
}

notification.dismiss();
resolve();
};

Expand Down

0 comments on commit 2f8d94a

Please sign in to comment.