fix: remove dead isTelemetryEnabled code for jetbrains (#8799)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@ class MessageTypes {
|
||||
companion object {
|
||||
val IDE_MESSAGE_TYPES = listOf(
|
||||
"readRangeInFile",
|
||||
"isTelemetryEnabled",
|
||||
"getUniqueId",
|
||||
"getDiff",
|
||||
"getTerminalContents",
|
||||
|
||||
@@ -162,11 +162,6 @@ class IdeProtocolClient(
|
||||
respond(contents)
|
||||
}
|
||||
|
||||
"isTelemetryEnabled" -> {
|
||||
val isEnabled = ide.isTelemetryEnabled()
|
||||
respond(isEnabled)
|
||||
}
|
||||
|
||||
"readRangeInFile" -> {
|
||||
val params = gsonService.gson.fromJson(
|
||||
dataElement.toString(),
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -166,8 +166,6 @@ interface IDE {
|
||||
|
||||
suspend fun getClipboardContent(): Map<String, String>
|
||||
|
||||
suspend fun isTelemetryEnabled(): Boolean
|
||||
|
||||
suspend fun isWorkspaceRemote(): Boolean
|
||||
|
||||
suspend fun getUniqueId(): String
|
||||
|
||||
Reference in New Issue
Block a user