File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed
components/ide/jetbrains/backend-plugin
kotlin/io/gitpod/jetbrains/remote Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ pluginUntilBuild=221.*
12
12
pluginVerifierIdeVersions =2021.3, 2022.1
13
13
# IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties
14
14
platformType =IU
15
- platformVersion =221.4994 -EAP-CANDIDATE -SNAPSHOT
15
+ platformVersion =221-EAP-SNAPSHOT
16
16
platformDownloadSources =true
17
17
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
18
18
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
Original file line number Diff line number Diff line change
1
+ package io.gitpod.jetbrains.remote
2
+
3
+ import com.jetbrains.rdserver.unattendedHost.customization.GatewayClientCustomizationProvider
4
+ import com.jetbrains.rdserver.unattendedHost.customization.controlCenter.DefaultGatewayControlCenterProvider
5
+ import com.jetbrains.rdserver.unattendedHost.customization.controlCenter.GatewayControlCenterProvider
6
+ import com.jetbrains.rdserver.unattendedHost.customization.controlCenter.GatewayHostnameDisplayKind
7
+ import io.gitpod.jetbrains.remote.icons.GitpodIcons
8
+ import javax.swing.Icon
9
+
10
+ class GitpodGatewayClientCustomizationProvider : GatewayClientCustomizationProvider {
11
+ override val icon: Icon = GitpodIcons .Logo
12
+ override val title: String = " Gitpod Workspace"
13
+
14
+ override val controlCenter: GatewayControlCenterProvider = object : GatewayControlCenterProvider {
15
+ override fun getHostnameDisplayKind () = GatewayHostnameDisplayKind .ShowHostnameOnNavbar
16
+ override fun getHostnameShort () = if (System .getenv(" GITPOD_WORKSPACE_ID" ) != null ) {
17
+ title + " : " + System .getenv(" GITPOD_WORKSPACE_ID" )
18
+ } else {
19
+ title
20
+ }
21
+ override fun getHostnameLong () = getHostnameShort()
22
+ }
23
+ }
24
+
Original file line number Diff line number Diff line change 28
28
<projectService serviceImplementation =" io.gitpod.jetbrains.remote.GitpodClientProjectSessionTracker" client =" guest" preload =" true" />
29
29
<projectService serviceImplementation =" io.gitpod.jetbrains.remote.GitpodTerminalService" preload =" true" />
30
30
<projectService serviceImplementation =" io.gitpod.jetbrains.remote.GitpodProjectManager" preload =" true" />
31
+ <gateway .customization.name implementation =" io.gitpod.jetbrains.remote.GitpodGatewayClientCustomizationProvider" />
31
32
</extensions >
32
33
33
34
</idea-plugin >
You can’t perform that action at this time.
0 commit comments