From 463122ccfe2b40ab7ff554c713d51a4df68c7382 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 24 Jan 2025 20:45:07 -0800 Subject: [PATCH] remove legacy config.js --- core/continueServer/interface.ts | 2 +- core/continueServer/stubs/client.ts | 2 +- extensions/vscode/src/stubs/remoteConfig.ts | 11 ++--------- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/core/continueServer/interface.ts b/core/continueServer/interface.ts index 3c67aa25e..c6e7ceda2 100644 --- a/core/continueServer/interface.ts +++ b/core/continueServer/interface.ts @@ -22,7 +22,7 @@ export interface IContinueServerClient { connected: boolean; url: URL | undefined; getUserToken(): string | undefined; - getConfig(): Promise<{ configJson: string; configJs: string }>; + getConfig(): Promise<{ configJson: string }>; getFromIndexCache( keys: string[], artifactId: T, diff --git a/core/continueServer/stubs/client.ts b/core/continueServer/stubs/client.ts index 49f02fb65..febed8bbd 100644 --- a/core/continueServer/stubs/client.ts +++ b/core/continueServer/stubs/client.ts @@ -30,7 +30,7 @@ export class ContinueServerClient implements IContinueServerClient { return this.url !== undefined && this.userToken !== undefined; } - public async getConfig(): Promise<{ configJson: string; configJs: string }> { + public async getConfig(): Promise<{ configJson: string }> { const userToken = await this.userToken; const response = await fetch(new URL("sync", this.url).href, { method: "GET", diff --git a/extensions/vscode/src/stubs/remoteConfig.ts b/extensions/vscode/src/stubs/remoteConfig.ts index 719d52db4..ffe1fe89b 100644 --- a/extensions/vscode/src/stubs/remoteConfig.ts +++ b/extensions/vscode/src/stubs/remoteConfig.ts @@ -2,10 +2,7 @@ import * as fs from "fs"; import { ContinueServerClient } from "core/continueServer/stubs/client"; import { EXTENSION_NAME } from "core/control-plane/env"; -import { - getConfigJsPathForRemote, - getConfigJsonPathForRemote, -} from "core/util/paths"; +import { getConfigJsonPathForRemote } from "core/util/paths"; import * as vscode from "vscode"; import { CONTINUE_WORKSPACE_KEY } from "../util/workspaceConfig"; @@ -126,16 +123,12 @@ export class RemoteConfigSync { remoteConfigServerUrl.toString(), userToken, ); - const { configJson, configJs } = await client.getConfig(); + const { configJson } = await client.getConfig(); fs.writeFileSync( getConfigJsonPathForRemote(remoteConfigServerUrl), configJson, ); - fs.writeFileSync( - getConfigJsPathForRemote(remoteConfigServerUrl), - configJs, - ); this.triggerReloadConfig(); } catch (e) { vscode.window.showWarningMessage(`Failed to sync remote config: ${e}`);