Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 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
5 changes: 5 additions & 0 deletions core/config/load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@
}
if (name === "llm") {
const llm = models.find((model) => model.title === params?.modelTitle);
if (!llm) {

Check warning on line 467 in core/config/load.ts

View workflow job for this annotation

GitHub Actions / core-checks

Unexpected negated condition
errors.push({
fatal: false,
message: `Unknown reranking model ${params?.modelTitle}`,
Expand Down Expand Up @@ -558,7 +558,7 @@
id: `continue-mcp-server-${index + 1}`,
name: `MCP Server`,
requestOptions: mergeConfigYamlRequestOptions(
server.transport.type !== "stdio"

Check warning on line 561 in core/config/load.ts

View workflow job for this annotation

GitHub Actions / core-checks

Unexpected negated condition
? server.transport.requestOptions
: undefined,
config.requestOptions,
Expand Down Expand Up @@ -656,6 +656,11 @@
final: ContinueConfig,
ide: IDE,
): Promise<BrowserSerializedContinueConfig> {
console.log(
"debug1 allow anonymous telemetry",
final.allowAnonymousTelemetry,
);

return {
allowAnonymousTelemetry: final.allowAnonymousTelemetry,
completionOptions: final.completionOptions,
Expand Down
6 changes: 0 additions & 6 deletions core/config/profile/doLoadConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,6 @@ export default async function doLoadConfig(options: {
}
});

if (newConfig.allowAnonymousTelemetry !== false) {
if ((await ide.isTelemetryEnabled()) === false) {
newConfig.allowAnonymousTelemetry = false;
}
}

// Org policies
const policy = PolicySingleton.getInstance().policy?.policy;
if (policy?.allowAnonymousTelemetry === false) {
Expand Down
2 changes: 0 additions & 2 deletions core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -807,8 +807,6 @@ export interface IDE {

getClipboardContent(): Promise<{ text: string; copiedAt: string }>;

isTelemetryEnabled(): Promise<boolean>;

isWorkspaceRemote(): Promise<boolean>;

getUniqueId(): Promise<string>;
Expand Down
1 change: 0 additions & 1 deletion core/protocol/ide.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export type ToIdeFromWebviewOrCoreProtocol = {
string[],
];
getAvailableThreads: [undefined, Thread[]];
isTelemetryEnabled: [undefined, boolean];
isWorkspaceRemote: [undefined, boolean];
getUniqueId: [undefined, string];
getTags: [string, IndexTag[]];
Expand Down
4 changes: 0 additions & 4 deletions core/protocol/messenger/messageIde.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,6 @@ export class MessageIde implements IDE {
return this.request("readRangeInFile", { filepath, range });
}

isTelemetryEnabled(): Promise<boolean> {
return this.request("isTelemetryEnabled", undefined);
}

isWorkspaceRemote(): Promise<boolean> {
return this.request("isWorkspaceRemote", undefined);
}
Expand Down
4 changes: 0 additions & 4 deletions core/protocol/messenger/reverseMessageIde.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ export class ReverseMessageIde {
return this.ide.readRangeInFile(data.filepath, data.range);
});

this.on("isTelemetryEnabled", () => {
return this.ide.isTelemetryEnabled();
});

this.on("getUniqueId", () => {
return this.ide.getUniqueId();
});
Expand Down
4 changes: 0 additions & 4 deletions core/util/filesystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,6 @@ class FileSystemIde implements IDE {
return Promise.resolve("");
}

isTelemetryEnabled(): Promise<boolean> {
return Promise.resolve(true);
}

getUniqueId(): Promise<string> {
return Promise.resolve("NOT_UNIQUE");
}
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 @@ -161,11 +161,6 @@ class IdeProtocolClient(
respond(contents)
}

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

"readRangeInFile" -> {
val params = 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
5 changes: 0 additions & 5 deletions extensions/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@
"configuration": {
"title": "Continue",
"properties": {
"continue.telemetryEnabled": {
"type": "boolean",
"default": true,
"markdownDescription": "Continue collects anonymous usage data, cleaned of PII, to help us improve the product for our users. Read more at [continue.dev › Telemetry](https://docs.continue.dev/telemetry)."
},
"continue.showInlineTip": {
"type": "boolean",
"default": true,
Expand Down
9 changes: 0 additions & 9 deletions extensions/vscode/src/VsCodeIde.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import { getExtensionUri, openEditorAndRevealRange } from "./util/vscode";
import { VsCodeWebviewProtocol } from "./webviewProtocol";

import type {

Check warning on line 21 in extensions/vscode/src/VsCodeIde.ts

View workflow job for this annotation

GitHub Actions / vscode-checks

There should be at least one empty line between import groups
DocumentSymbol,
FileStatsMap,
FileType,
Expand All @@ -33,7 +33,7 @@
TerminalOptions,
Thread,
} from "core";
import { getExtensionVersion, isExtensionPrerelease } from "./util/util";

Check warning on line 36 in extensions/vscode/src/VsCodeIde.ts

View workflow job for this annotation

GitHub Actions / vscode-checks

`./util/util` import should occur before import of `./util/vscode`

class VsCodeIde implements IDE {
ideUtils: VsCodeIdeUtils;
Expand Down Expand Up @@ -241,15 +241,6 @@
return this.ideUtils.getRepo(vscode.Uri.parse(dir));
}

async isTelemetryEnabled(): Promise<boolean> {
const globalEnabled = vscode.env.isTelemetryEnabled;
const continueEnabled: boolean =
(await vscode.workspace
.getConfiguration(EXTENSION_NAME)
.get("telemetryEnabled")) ?? true;
return globalEnabled && continueEnabled;
}

isWorkspaceRemote(): Promise<boolean> {
return Promise.resolve(vscode.env.remoteName !== undefined);
}
Expand Down
4 changes: 0 additions & 4 deletions extensions/vscode/src/extension/VsCodeMessenger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -821,10 +821,6 @@ export class VsCodeMessenger {
return await ide.getIdeInfo();
});

this.onWebviewOrCore("isTelemetryEnabled", async (msg) => {
return await ide.isTelemetryEnabled();
});

this.onWebviewOrCore("getUniqueId", async (msg) => {
return await ide.getUniqueId();
});
Expand Down
Loading