From c84b2d64c4fe61d1d4caba908d8a7cbfe04467b1 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 18 Mar 2025 14:40:03 -0700 Subject: [PATCH] ide tolower case just to be safe --- core/autocomplete/CompletionProvider.ts | 2 +- core/config/profile/doLoadConfig.ts | 2 +- core/util/paths.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/autocomplete/CompletionProvider.ts b/core/autocomplete/CompletionProvider.ts index b56d153dc..949f94c3b 100644 --- a/core/autocomplete/CompletionProvider.ts +++ b/core/autocomplete/CompletionProvider.ts @@ -262,7 +262,7 @@ export class CompletionProvider { // When using the JetBrains extension, Mark as displayed const ideType = (await this.ide.getIdeInfo()).ideType; - if (ideType === "jetbrains") { + if (ideType.toLowerCase() === "jetbrains") { this.markDisplayed(input.completionId, outcome); } diff --git a/core/config/profile/doLoadConfig.ts b/core/config/profile/doLoadConfig.ts index 224b7b64e..de210952f 100644 --- a/core/config/profile/doLoadConfig.ts +++ b/core/config/profile/doLoadConfig.ts @@ -191,7 +191,7 @@ async function getWorkspaceConfigs(ide: IDE): Promise { workspaceConfigs = await ide.getWorkspaceConfigs(); // Config is sent over the wire from JB so we need to parse it - if (ideInfo.ideType === "jetbrains") { + if (ideInfo.ideType.toLowerCase() === "jetbrains") { workspaceConfigs = (workspaceConfigs as any).map(JSON.parse); } } catch (e) { diff --git a/core/util/paths.ts b/core/util/paths.ts index 3bc2ee3cf..37ff562fc 100644 --- a/core/util/paths.ts +++ b/core/util/paths.ts @@ -94,7 +94,7 @@ export function getSessionsListPath(): string { export function getConfigJsonPath(ideType: IdeType = "vscode"): string { const p = path.join(getContinueGlobalPath(), "config.json"); if (!fs.existsSync(p)) { - if (ideType === "jetbrains") { + if (ideType.toLowerCase() === "jetbrains") { fs.writeFileSync(p, JSON.stringify(defaultConfigJetBrains, null, 2)); } else { fs.writeFileSync(p, JSON.stringify(defaultConfig, null, 2)); @@ -106,7 +106,7 @@ export function getConfigJsonPath(ideType: IdeType = "vscode"): string { export function getConfigYamlPath(ideType?: IdeType): string { const p = path.join(getContinueGlobalPath(), "config.yaml"); // if (!fs.existsSync(p)) { - // if (ideType === "jetbrains") { + // if (ideType.toLowerCase() === "jetbrains") { // fs.writeFileSync(p, YAML.stringify(defaultConfigYamlJetBrains)); // } else { // fs.writeFileSync(p, YAML.stringify(defaultConfigYaml));