Skip to content

Commit

Permalink
Merge branch 'develop' into bump-node-version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiaaming authored Aug 7, 2024
2 parents e2fbe02 + 8fbe26c commit e10b0a8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions extension/src/client/TaskServerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,13 @@ export class TaskServerClient implements vscode.Disposable {
logger.info("Build cancelled:", cancelled.getMessage());
};

/**
* This is called when there is an error connecting to the Task server which uses GRPC.
* If Task server is down, it means that the whole Gradle server is not running.
* So here if the server is not ready, we should restart the gradle server.
* If gradle server is ready, it implies that GRPC server is up but the grpc client was unable to connect.
* @param e GRPC connection error
*/
private handleConnectError = async (e: Error): Promise<void> => {
logger.error("Error connecting to gradle server:", e.message);
this.close();
Expand Down

0 comments on commit e10b0a8

Please sign in to comment.