From 5c1b4d77eaff9d32339ded670162869fdfbd3f62 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Sat, 7 Dec 2024 19:34:14 -0800 Subject: [PATCH] remove getcontinueglobaluri --- core/util/paths.ts | 12 ------------ core/util/uri.ts | 0 2 files changed, 12 deletions(-) create mode 100644 core/util/uri.ts diff --git a/core/util/paths.ts b/core/util/paths.ts index 3ff5251e6..48877ea4d 100644 --- a/core/util/paths.ts +++ b/core/util/paths.ts @@ -1,6 +1,5 @@ import * as fs from "fs"; import * as os from "os"; -import { pathToFileURL } from "url"; import * as path from "path"; import * as JSONC from "comment-json"; import dotenv from "dotenv"; @@ -41,9 +40,6 @@ export function getGlobalContinueIgnorePath(): string { return continueIgnorePath; } -/* - Deprecated, replace with getContinueGlobalUri where possible -*/ export function getContinueGlobalPath(): string { // This is ~/.continue on mac/linux const continuePath = CONTINUE_GLOBAL_DIR; @@ -53,10 +49,6 @@ export function getContinueGlobalPath(): string { return continuePath; } -export function getContinueGlobalUri(): string { - return pathToFileURL(CONTINUE_GLOBAL_DIR).href; -} - export function getSessionsFolderPath(): string { const sessionsPath = path.join(getContinueGlobalPath(), "sessions"); if (!fs.existsSync(sessionsPath)) { @@ -101,10 +93,6 @@ export function getConfigJsonPath(ideType: IdeType = "vscode"): string { return p; } -export function getConfigJsonUri(): string { - return getContinueGlobalUri() + "/config.json"; -} - export function getConfigTsPath(): string { const p = path.join(getContinueGlobalPath(), "config.ts"); if (!fs.existsSync(p)) { diff --git a/core/util/uri.ts b/core/util/uri.ts new file mode 100644 index 000000000..e69de29bb