-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[jb] Port Forwarding in v2022.3 #12226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html | ||
# for insight into build numbers and IntelliJ Platform versions. | ||
pluginSinceBuild=222 | ||
pluginUntilBuild=222.* | ||
pluginSinceBuild=223 | ||
pluginUntilBuild=223.* | ||
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl | ||
# See https://jb.gg/intellij-platform-builds-list for available build versions. | ||
pluginVerifierIdeVersions=2022.2 | ||
pluginVerifierIdeVersions=2022.3 | ||
# Version from "com.jetbrains.intellij.idea" which can be found at https://www.jetbrains.com/intellij-repository/snapshots | ||
platformVersion=222.4167-EAP-CANDIDATE-SNAPSHOT | ||
platformVersion=223.1192-EAP-CANDIDATE-SNAPSHOT | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
# If you want to try, during development, a snapshot that you need to download because it's not available at https://www.jetbrains.com/intellij-repository/snapshots, run the following command: | ||
# (cd /workspace && rm -rf ide-backend && wget https://download-cdn.jetbrains.com/idea/gateway/idea_tmp/ideaIU-223.2931.tar.gz && tar -xvf ideaIU-223.2931.tar.gz && rm ideaIU-223.2931.tar.gz && mv idea-IU-223.2931 ide-backend) | ||
localPath=/workspace/ide-backend |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,13 +25,17 @@ import io.netty.channel.ChannelHandlerContext | |
import io.netty.handler.codec.http.FullHttpRequest | ||
import io.netty.handler.codec.http.QueryStringDecoder | ||
import io.prometheus.client.exporter.common.TextFormat | ||
import kotlinx.coroutines.Dispatchers | ||
import kotlinx.coroutines.GlobalScope | ||
import kotlinx.coroutines.launch | ||
import kotlinx.coroutines.withContext | ||
import org.jetbrains.ide.RestService | ||
import org.jetbrains.io.response | ||
import java.io.OutputStreamWriter | ||
import java.nio.file.InvalidPathException | ||
import java.nio.file.Path | ||
|
||
@Suppress("UnstableApiUsage") | ||
@Suppress("UnstableApiUsage", "OPT_IN_USAGE") | ||
class GitpodCLIService : RestService() { | ||
|
||
private val manager = service<GitpodManager>() | ||
|
@@ -65,7 +69,11 @@ class GitpodCLIService : RestService() { | |
val file = parseFilePath(fileStr) ?: return "invalid file" | ||
val shouldWait = getBooleanParameter("wait", urlDecoder) | ||
return withClient(request, context) { | ||
CommandLineProcessor.doOpenFileOrProject(file, shouldWait).future.get() | ||
GlobalScope.launch { | ||
withContext(Dispatchers.IO) { | ||
CommandLineProcessor.doOpenFileOrProject(file, shouldWait).future.get() | ||
} | ||
} | ||
Comment on lines
+72
to
+76
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ℹ️ This change is required by the latest IDE build because |
||
} | ||
} | ||
if (operation == "preview") { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ packages: | |
metadata: | ||
helm-component: workspace.desktopIdeImages.intellijLatest | ||
buildArgs: | ||
JETBRAINS_DOWNLOAD_QUALIFIER: intellij-latest | ||
JETBRAINS_BACKEND_URL: "https://download-cdn.jetbrains.com/idea/gateway/idea_tmp/ideaIU-223.2931.tar.gz" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
SUPERVISOR_IDE_CONFIG: supervisor-ide-config_intellij.json | ||
JETBRAINS_BACKEND_QUALIFIER: latest | ||
image: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.