-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Before this change, `bazel info` was called before the actual BSP server. This means, there was no clear way to submit failure (for example if `bazel` executable was not available in PATH). Currently, it is run on `build/intitialize` request, so the error will be logged via BSP failure response.
- Loading branch information
1 parent
2026c61
commit 51eff29
Showing
9 changed files
with
110 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
server/src/main/java/org/jetbrains/bsp/bazel/server/bsp/BazelServices.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package org.jetbrains.bsp.bazel.server.bsp; | ||
|
||
import org.jetbrains.bsp.bazel.server.sync.ExecuteService; | ||
import org.jetbrains.bsp.bazel.server.sync.ProjectSyncService; | ||
|
||
public class BazelServices { | ||
private final BazelBspServerLifetime serverLifetime; | ||
private final BspRequestsRunner bspRequestsRunner; | ||
private final ProjectSyncService projectSyncService; | ||
private final ExecuteService executeService; | ||
|
||
public BazelServices( | ||
BazelBspServerLifetime serverLifetime, | ||
BspRequestsRunner bspRequestsRunner, | ||
ProjectSyncService projectSyncService, | ||
ExecuteService executeService) { | ||
this.serverLifetime = serverLifetime; | ||
this.bspRequestsRunner = bspRequestsRunner; | ||
this.projectSyncService = projectSyncService; | ||
this.executeService = executeService; | ||
} | ||
|
||
public BazelBspServerLifetime getServerLifetime() { | ||
return serverLifetime; | ||
} | ||
|
||
public BspRequestsRunner getBspRequestsRunner() { | ||
return bspRequestsRunner; | ||
} | ||
|
||
public ProjectSyncService getProjectSyncService() { | ||
return projectSyncService; | ||
} | ||
|
||
public ExecuteService getExecuteService() { | ||
return executeService; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters