fix: remove dead isTelemetryEnabled code for jetbrains (#8799)

This commit is contained in:
Dallin Romney
2025-11-19 15:27:29 -08:00
committed by GitHub
parent 63abf6b43d
commit 05cce29d20
5 changed files with 6 additions and 13 deletions

View File

@@ -348,7 +348,12 @@ export default async function doLoadConfig(options: {
}
});
if (newConfig.allowAnonymousTelemetry !== false) {
// VS Code has an IDE telemetry setting
// Since it's a security concern we use OR behavior on false
if (
newConfig.allowAnonymousTelemetry !== false &&
ideInfo.ideType === "vscode"
) {
if ((await ide.isTelemetryEnabled()) === false) {
newConfig.allowAnonymousTelemetry = false;
}

View File

@@ -4,7 +4,6 @@ class MessageTypes {
companion object {
val IDE_MESSAGE_TYPES = listOf(
"readRangeInFile",
"isTelemetryEnabled",
"getUniqueId",
"getDiff",
"getTerminalContents",

View File

@@ -162,11 +162,6 @@ class IdeProtocolClient(
respond(contents)
}
"isTelemetryEnabled" -> {
val isEnabled = ide.isTelemetryEnabled()
respond(isEnabled)
}
"readRangeInFile" -> {
val params = gsonService.gson.fromJson(
dataElement.toString(),

View File

@@ -191,10 +191,6 @@ class IntelliJIDE(
return mapOf("text" to text)
}
override suspend fun isTelemetryEnabled(): Boolean {
return true
}
override suspend fun isWorkspaceRemote(): Boolean {
return this.getIdeInfo().remoteName != "local"
}

View File

@@ -166,8 +166,6 @@ interface IDE {
suspend fun getClipboardContent(): Map<String, String>
suspend fun isTelemetryEnabled(): Boolean
suspend fun isWorkspaceRemote(): Boolean
suspend fun getUniqueId(): String