File tree 10 files changed +56
-12
lines changed
components/ide/jetbrains/backend-plugin
kotlin/io/gitpod/jetbrains/remote
resources-latest/META-INF
resources-stable/META-INF
10 files changed +56
-12
lines changed Original file line number Diff line number Diff line change 1
1
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
2
2
# for insight into build numbers and IntelliJ Platform versions.
3
- pluginSinceBuild =223
3
+ pluginSinceBuild =223.7126
4
4
pluginUntilBuild =223.*
5
5
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
6
6
# See https://jb.gg/intellij-platform-builds-list for available build versions.
7
7
pluginVerifierIdeVersions =2022.3
8
8
# Version from "com.jetbrains.intellij.idea" which can be found at https://www.jetbrains.com/intellij-repository/snapshots
9
- platformVersion =223.6160 -EAP-CANDIDATE-SNAPSHOT
9
+ platformVersion =223.7126 -EAP-CANDIDATE-SNAPSHOT
Original file line number Diff line number Diff line change @@ -28,17 +28,17 @@ TEST_BACKEND_DIR="/workspace/ide-backend-$JB_QUALIFIER"
28
28
if [ ! -d " $TEST_BACKEND_DIR " ]; then
29
29
mkdir -p $TEST_BACKEND_DIR
30
30
if [[ $RUN_FROM == " snapshot" ]]; then
31
+ SNAPSHOT_VERSION=$( grep " platformVersion=" " gradle-$JB_QUALIFIER .properties" | sed ' s/platformVersion=//' )
31
32
(cd $TEST_BACKEND_DIR &&
32
- SNAPSHOT_VERSION=$( grep " platformVersion=" " gradle-$JB_QUALIFIER .properties" | sed ' s/platformVersion=//' ) &&
33
33
echo " Downloading the $JB_QUALIFIER version of IntelliJ IDEA ($SNAPSHOT_VERSION )..." &&
34
34
curl -sSLo backend.zip " https://www.jetbrains.com/intellij-repository/snapshots/com/jetbrains/intellij/idea/ideaIU/$SNAPSHOT_VERSION /ideaIU-$SNAPSHOT_VERSION .zip" &&
35
35
unzip backend.zip &&
36
36
rm backend.zip &&
37
37
ln -s " ideaIU-$SNAPSHOT_VERSION " . &&
38
38
rm -r " ideaIU-$SNAPSHOT_VERSION " &&
39
39
cp -r /ide-desktop/backend/jbr . &&
40
- cp /ide-desktop/backend/ bin/idea.properties ./bin &&
41
- cp /ide-desktop/backend/ bin/idea64.vmoptions ./bin)
40
+ cp ./ bin/linux /idea.properties ./bin &&
41
+ cp ./ bin/linux /idea64.vmoptions ./bin)
42
42
else
43
43
if [[ $JB_QUALIFIER == " stable" ]]; then
44
44
PRODUCT_TYPE=" release"
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 java.nio.file.Path
8
+
9
+ interface GitpodCLIHelper {
10
+ suspend fun open (file : Path , shouldWait : Boolean )
11
+ }
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ package io.gitpod.jetbrains.remote
6
6
7
7
import com.intellij.codeWithMe.ClientId
8
8
import com.intellij.ide.BrowserUtil
9
- import com.intellij.ide.CommandLineProcessor
10
9
import com.intellij.openapi.application.ApplicationManager
11
10
import com.intellij.openapi.client.ClientSession
12
11
import com.intellij.openapi.client.ClientSessionsManager
@@ -40,6 +39,7 @@ class GitpodCLIService : RestService() {
40
39
41
40
private val manager = service<GitpodManager >()
42
41
private val portsService = service<GitpodPortsService >()
42
+ private val cliHelperService = service<GitpodCLIHelper >()
43
43
44
44
override fun getServiceName () = SERVICE_NAME
45
45
@@ -71,7 +71,7 @@ class GitpodCLIService : RestService() {
71
71
return withClient(request, context) {
72
72
GlobalScope .launch {
73
73
withContext(Dispatchers .IO ) {
74
- CommandLineProcessor .doOpenFileOrProject (file, shouldWait).future.get( )
74
+ cliHelperService.open (file, shouldWait)
75
75
}
76
76
}
77
77
}
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.latest
6
+
7
+ import com.intellij.ide.CommandLineProcessor
8
+ import io.gitpod.jetbrains.remote.GitpodCLIHelper
9
+ import java.nio.file.Path
10
+
11
+ @Suppress(" UnstableApiUsage" )
12
+ class GitpodCLIHelperImpl : GitpodCLIHelper {
13
+ override suspend fun open (file : Path , shouldWait : Boolean ) {
14
+ CommandLineProcessor .doOpenFileOrProject(file, shouldWait).future.await()
15
+ }
16
+ }
Original file line number Diff line number Diff line change @@ -104,8 +104,7 @@ class GitpodPortForwardingService(private val session: ClientProjectSession) {
104
104
hostPort,
105
105
PortType .TCP ,
106
106
setOf (FORWARDED_PORT_LABEL ),
107
- hostPort,
108
- ClientPortPickingStrategy .REASSIGN_WHEN_BUSY
107
+ ClientPortAttributes (hostPort, ClientPortPickingStrategy .REASSIGN_WHEN_BUSY ),
109
108
) {
110
109
this .name = port.name
111
110
this .description = port.description
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.stable
6
+
7
+ import com.intellij.ide.CommandLineProcessor
8
+ import io.gitpod.jetbrains.remote.GitpodCLIHelper
9
+ import java.nio.file.Path
10
+
11
+ @Suppress(" UnstableApiUsage" )
12
+ class GitpodCLIHelperImpl : GitpodCLIHelper {
13
+ override suspend fun open (file : Path , shouldWait : Boolean ) {
14
+ CommandLineProcessor .doOpenFileOrProject(file, shouldWait).future.get()
15
+ }
16
+ }
Original file line number Diff line number Diff line change 7
7
<idea-plugin >
8
8
<extensions defaultExtensionNs =" com.intellij" >
9
9
<applicationService serviceInterface =" io.gitpod.jetbrains.remote.GitpodIgnoredPortsForNotificationService" serviceImplementation =" io.gitpod.jetbrains.remote.latest.GitpodIgnoredPortsForNotificationServiceImpl" preload =" true" />
10
- <projectService serviceImplementation =" io.gitpod.jetbrains.remote.latest.GitpodPortForwardingService" preload =" true" client =" guest" />
10
+ <applicationService serviceInterface =" io.gitpod.jetbrains.remote.GitpodCLIHelper" serviceImplementation =" io.gitpod.jetbrains.remote.latest.GitpodCLIHelperImpl" preload =" true" />
11
+ <projectService serviceImplementation =" io.gitpod.jetbrains.remote.latest.GitpodPortForwardingService" preload =" true" client =" remote" />
11
12
</extensions >
12
13
</idea-plugin >
Original file line number Diff line number Diff line change 7
7
<idea-plugin >
8
8
<extensions defaultExtensionNs =" com.intellij" >
9
9
<applicationService serviceInterface =" io.gitpod.jetbrains.remote.GitpodIgnoredPortsForNotificationService" serviceImplementation =" io.gitpod.jetbrains.remote.stable.GitpodIgnoredPortsForNotificationServiceImpl" preload =" true" />
10
+ <applicationService serviceInterface =" io.gitpod.jetbrains.remote.GitpodCLIHelper" serviceImplementation =" io.gitpod.jetbrains.remote.stable.GitpodCLIHelperImpl" preload =" true" />
10
11
</extensions >
11
12
</idea-plugin >
Original file line number Diff line number Diff line change 29
29
<notificationGroup id =" Gitpod Notifications" displayType =" BALLOON" isLogByDefault =" false" />
30
30
<httpRequestHandler implementation =" io.gitpod.jetbrains.remote.GitpodCLIService" />
31
31
<projectService serviceImplementation =" io.gitpod.jetbrains.remote.GitpodClientProjectSessionTracker"
32
- client =" guest " preload =" true" />
32
+ client =" remote " preload =" true" />
33
33
<projectService serviceImplementation =" io.gitpod.jetbrains.remote.GitpodProjectManager" preload =" true" />
34
- <projectService serviceImplementation =" io.gitpod.jetbrains.remote.GitpodTerminalService" client =" guest "
34
+ <projectService serviceImplementation =" io.gitpod.jetbrains.remote.GitpodTerminalService" client =" remote "
35
35
preload =" true" />
36
36
<gateway .customization.name
37
37
implementation =" io.gitpod.jetbrains.remote.GitpodGatewayClientCustomizationProvider" />
You can’t perform that action at this time.
0 commit comments