Skip to content

Commit

Permalink
Pass project to CodyAgentClient
Browse files Browse the repository at this point in the history
  • Loading branch information
mkondratek committed Aug 14, 2024
1 parent 86f1d69 commit 2d53103
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ kotlin.stdlib.default.dependency=false
nodeBinaries.commit=8755ae4c05fd476cd23f2972049111ba436c86d4
nodeBinaries.version=v20.12.2
cody.autocomplete.enableFormatting=true
cody.commit=a7ba3c987888439299edb6c215bb8b3ed4765d1d
cody.commit=7537429109d9eaf61da6daf49716abe169fbad6f
2 changes: 1 addition & 1 deletion src/main/kotlin/com/sourcegraph/cody/agent/CodyAgent.kt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private constructor(
fun create(project: Project): CompletableFuture<CodyAgent> {
try {
val conn = startAgentProcess()
val client = CodyAgentClient(WebUIServiceWebviewProvider(project))
val client = CodyAgentClient(WebUIServiceWebviewProvider(project), project)
client.onSetConfigFeatures = project.service<CurrentConfigFeatures>()
val launcher = startAgentLauncher(conn, client)
val server = launcher.remoteProxy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class CodyAgentClientTest : BasePlatformTestCase() {
private val condition = lock.newCondition()

private fun client(): CodyAgentClient {
val client = CodyAgentClient(StubWebviewProvider())
val client = CodyAgentClient(StubWebviewProvider(), project)
client.onSetConfigFeatures = ConfigFeaturesObserver {
lock.lock()
try {
Expand Down

0 comments on commit 2d53103

Please sign in to comment.