Skip to content

Commit 05cce29

Browse files
authored
fix: remove dead isTelemetryEnabled code for jetbrains (#8799)
1 parent 63abf6b commit 05cce29

File tree

5 files changed

+6
-13
lines changed

5 files changed

+6
-13
lines changed

core/config/profile/doLoadConfig.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,12 @@ export default async function doLoadConfig(options: {
348348
}
349349
});
350350

351-
if (newConfig.allowAnonymousTelemetry !== false) {
351+
// VS Code has an IDE telemetry setting
352+
// Since it's a security concern we use OR behavior on false
353+
if (
354+
newConfig.allowAnonymousTelemetry !== false &&
355+
ideInfo.ideType === "vscode"
356+
) {
352357
if ((await ide.isTelemetryEnabled()) === false) {
353358
newConfig.allowAnonymousTelemetry = false;
354359
}

extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ class MessageTypes {
44
companion object {
55
val IDE_MESSAGE_TYPES = listOf(
66
"readRangeInFile",
7-
"isTelemetryEnabled",
87
"getUniqueId",
98
"getDiff",
109
"getTerminalContents",

extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,6 @@ class IdeProtocolClient(
162162
respond(contents)
163163
}
164164

165-
"isTelemetryEnabled" -> {
166-
val isEnabled = ide.isTelemetryEnabled()
167-
respond(isEnabled)
168-
}
169-
170165
"readRangeInFile" -> {
171166
val params = gsonService.gson.fromJson(
172167
dataElement.toString(),

extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IntelliJIde.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,6 @@ class IntelliJIDE(
191191
return mapOf("text" to text)
192192
}
193193

194-
override suspend fun isTelemetryEnabled(): Boolean {
195-
return true
196-
}
197-
198194
override suspend fun isWorkspaceRemote(): Boolean {
199195
return this.getIdeInfo().remoteName != "local"
200196
}

extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/types.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,6 @@ interface IDE {
166166

167167
suspend fun getClipboardContent(): Map<String, String>
168168

169-
suspend fun isTelemetryEnabled(): Boolean
170-
171169
suspend fun isWorkspaceRemote(): Boolean
172170

173171
suspend fun getUniqueId(): String

0 commit comments

Comments
 (0)