mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
[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:
committed by
intellij-monorepo-bot
parent
1bb53c5e92
commit
3474e6669a
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user