remove getcontinueglobaluri

This commit is contained in:
Dallin Romney 2024-12-07 19:34:14 -08:00
parent 2711b3b282
commit 5c1b4d77ea
2 changed files with 0 additions and 12 deletions

View file

@ -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)) {

0
core/util/uri.ts Normal file
View file