File tree Expand file tree Collapse file tree 3 files changed +30
-1
lines changed
components/ide/jetbrains/backend-plugin
kotlin/io/gitpod/jetbrains/remote Expand file tree Collapse file tree 3 files changed +30
-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
+ // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
2
+ // Licensed under the GNU Affero General Public License (AGPL).
3
+ // See License-AGPL.txt in the project root for license information.
4
+
5
+ package io.gitpod.jetbrains.remote
6
+
7
+ import com.jetbrains.rdserver.unattendedHost.customization.GatewayClientCustomizationProvider
8
+ import com.jetbrains.rdserver.unattendedHost.customization.controlCenter.DefaultGatewayControlCenterProvider
9
+ import com.jetbrains.rdserver.unattendedHost.customization.controlCenter.GatewayControlCenterProvider
10
+ import com.jetbrains.rdserver.unattendedHost.customization.controlCenter.GatewayHostnameDisplayKind
11
+ import io.gitpod.jetbrains.remote.icons.GitpodIcons
12
+ import javax.swing.Icon
13
+
14
+ class GitpodGatewayClientCustomizationProvider : GatewayClientCustomizationProvider {
15
+ override val icon: Icon = GitpodIcons .Logo
16
+ override val title: String = " Gitpod Workspace"
17
+
18
+ override val controlCenter: GatewayControlCenterProvider = object : GatewayControlCenterProvider {
19
+ override fun getHostnameDisplayKind () = GatewayHostnameDisplayKind .ShowHostnameOnNavbar
20
+ override fun getHostnameShort () = if (System .getenv(" GITPOD_WORKSPACE_ID" ) != null ) {
21
+ title + " : " + System .getenv(" GITPOD_WORKSPACE_ID" )
22
+ } else {
23
+ title
24
+ }
25
+ override fun getHostnameLong () = getHostnameShort()
26
+ }
27
+ }
28
+
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