Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion core/config/profile/doLoadConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ class MessageTypes {
companion object {
val IDE_MESSAGE_TYPES = listOf(
"readRangeInFile",
"isTelemetryEnabled",
"getUniqueId",
"getDiff",
"getTerminalContents",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,6 @@ class IdeProtocolClient(
respond(contents)
}

"isTelemetryEnabled" -> {
val isEnabled = ide.isTelemetryEnabled()
respond(isEnabled)
}

"readRangeInFile" -> {
val params = gsonService.gson.fromJson(
dataElement.toString(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,6 @@ interface IDE {

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

suspend fun isTelemetryEnabled(): Boolean

suspend fun isWorkspaceRemote(): Boolean

suspend fun getUniqueId(): String
Expand Down
Loading