Skip to content

Commit 0693dce

Browse files
committed
[jb-remote] hook git credential helper
1 parent b2eb980 commit 0693dce

File tree

4 files changed

+27
-22
lines changed

4 files changed

+27
-22
lines changed

components/ide/jetbrains/backend-plugin/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ platformVersion=213-EAP-SNAPSHOT
1616
platformDownloadSources=true
1717
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
1818
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
19-
platformPlugins=
19+
platformPlugins=Git4Idea
2020
# Opt-out flag for bundling Kotlin standard library.
2121
# See https://plugins.jetbrains.com/docs/intellij/kotlin.html#kotlin-standard-library for details.
2222
kotlin.stdlib.default.dependency=false
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package io.gitpod.jetbrains.remote
2+
3+
import com.intellij.openapi.Disposable
4+
import com.intellij.openapi.components.Service
5+
import git4idea.config.GitVcsApplicationSettings
6+
7+
@Service
8+
class GitpodManager : Disposable {
9+
10+
init {
11+
GitVcsApplicationSettings.getInstance().isUseCredentialHelper = true
12+
}
13+
14+
override fun dispose() {
15+
16+
}
17+
}

components/ide/jetbrains/backend-plugin/src/main/kotlin/io/gitpod/jetbrains/remote/listeners/MyApplicationActivationListener.kt

Lines changed: 0 additions & 16 deletions
This file was deleted.

components/ide/jetbrains/backend-plugin/src/main/resources/META-INF/plugin.xml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@
1111

1212
<!-- Product and plugin compatibility requirements -->
1313
<!-- https://plugins.jetbrains.com/docs/intellij/plugin-compatibility.html -->
14-
<depends>com.intellij.modules.platform</depends>
14+
<dependencies>
15+
<plugin id="com.intellij.modules.platform"/>
16+
<plugin id="Git4Idea"/>
17+
</dependencies>
18+
19+
<extensions defaultExtensionNs="com.intellij">
20+
<applicationService serviceImplementation="io.gitpod.jetbrains.remote.services.HeartbeatService" preload="true"/>
21+
<applicationService serviceImplementation="io.gitpod.jetbrains.remote.GitpodManager" preload="true"/>
22+
</extensions>
1523

16-
<applicationListeners>
17-
<listener class="io.gitpod.jetbrains.remote.listeners.MyApplicationActivationListener"
18-
topic="com.intellij.openapi.application.ApplicationActivationListener"/>
19-
</applicationListeners>
2024
</idea-plugin>

0 commit comments

Comments
 (0)