File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
components/ide/jetbrains/backend-plugin/src/main/kotlin/io/gitpod/jetbrains/remote Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1- // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
1+ // Copyright (c) 2024 Gitpod GmbH. All rights reserved.
22// Licensed under the GNU Affero General Public License (AGPL).
33// See License.AGPL.txt in the project root for license information.
44
@@ -27,7 +27,10 @@ import io.netty.channel.ChannelHandlerContext
2727import io.netty.handler.codec.http.FullHttpRequest
2828import io.netty.handler.codec.http.QueryStringDecoder
2929import io.prometheus.client.exporter.common.TextFormat
30- import kotlinx.coroutines.*
30+ import kotlinx.coroutines.GlobalScope
31+ import kotlinx.coroutines.delay
32+ import kotlinx.coroutines.launch
33+ import kotlinx.coroutines.runBlocking
3134import org.jetbrains.ide.RestService
3235import org.jetbrains.io.response
3336import java.io.OutputStreamWriter
@@ -113,7 +116,9 @@ class GitpodCLIService : RestService() {
113116 GlobalScope .launch {
114117 getClientSessionAndProjectAsync().let { (session, project) ->
115118 ClientId .withClientId(session.clientId) {
116- action(project)
119+ runBlocking {
120+ action(project)
121+ }
117122 sendOk(request, context)
118123 }
119124 }
You can’t perform that action at this time.
0 commit comments