[feedback] IJPL-177421 Permanent CSAT survey in IDEs

Fix compilation


(cherry picked from commit 7f85ee5d77b18f8bda3c58303a32eb7dce501b45)

IJ-MR-155667

GitOrigin-RevId: 7c8b37b9b8156a80480f5f4f48b7c6e9bbd51c2e
This commit is contained in:
Yuriy Artamonov
2025-02-20 21:28:27 +01:00
committed by intellij-monorepo-bot
parent 1bb53c5e92
commit 3474e6669a
2 changed files with 11 additions and 1 deletions

View File

@@ -82,6 +82,15 @@ val Project.currentSession: ClientProjectSession
get() = ClientSessionsManager.getProjectSession(this) ?:
error("Project-level session is not set. ${ClientId.current}")
/**
* Shortcut to [com.intellij.openapi.client.ClientSessionsManager.getProjectSession] for [ClientId.current]
* @see com.intellij.openapi.client.ClientSessionsManager.getProjectSession
*/
@get:Internal
val Project.currentSessionOrNull: ClientProjectSession?
get() = ClientSessionsManager.getProjectSession(project = this, clientId = ClientId.current)
@Internal
fun Application.sessions(kind: ClientKind): List<ClientAppSession> {
return ClientSessionsManager.getAppSessions(kind)

View File

@@ -2,12 +2,13 @@
package com.intellij.frontend
import com.intellij.openapi.application.ApplicationInfo
import com.intellij.openapi.util.SystemInfo
import com.intellij.util.system.OS
internal class DefaultHostIdeInfoService : HostIdeInfoService {
override fun getHostInfo(): HostInfo {
return HostInfo(productCode = ApplicationInfo.getInstance().build.productCode,
osName = OS.CURRENT.name,
osVersion = OS.CURRENT.version)
osVersion = SystemInfo.OS_VERSION)
}
}