Skip to content

Commit

Permalink
Revert "feat(uninstall): delete auth credentials on uninstall (CODY-1043
Browse files Browse the repository at this point in the history
) (#2434)" (#2484)

This reverts commit 65f65c5.

The UninstallListener introduced in this commit seems to run for every
extension uninstall instead of just when the sourcegraph extension is
uninstalled.

## Test plan
This will need to be manually tested.
  • Loading branch information
jamesmcnamara authored Oct 21, 2024
1 parent 437e3e2 commit 96ea1c6
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 48 deletions.
2 changes: 0 additions & 2 deletions src/main/kotlin/com/sourcegraph/cody/agent/CodyAgentServer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,4 @@ interface _LegacyAgentServer {

@JsonRequest("testing/requestErrors")
fun testingRequestErrors(): CompletableFuture<List<NetworkRequest>>

@JsonRequest("extension/reset") fun extension_reset(params: Null?): CompletableFuture<Null?>
}
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,6 @@ class CodyAuthenticationManager :

fun showInvalidAccessTokenError() = getIsTokenInvalid().getNow(null) == true

fun removeAll() {
accountManager.accounts.forEach { accountManager.removeAccount(it) }
}

override fun dispose() {
scheduler.shutdown()
}
Expand Down

This file was deleted.

2 changes: 0 additions & 2 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@
toolWindowId="Cody"/>
<projectService id="sourcegraph.findService"
serviceImplementation="com.sourcegraph.find.FindService"/>
<postStartupActivity
implementation="com.sourcegraph.cody.initialization.UninstallListener"/>
<postStartupActivity
implementation="com.sourcegraph.cody.initialization.PostStartupActivity"/>

Expand Down

0 comments on commit 96ea1c6

Please sign in to comment.