ide tolower case just to be safe

This commit is contained in:
Dallin Romney 2025-03-18 14:40:03 -07:00
parent 8fc5c90d34
commit c84b2d64c4
3 changed files with 4 additions and 4 deletions

View file

@ -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);
}

View file

@ -191,7 +191,7 @@ async function getWorkspaceConfigs(ide: IDE): Promise<ContinueRcJson[]> {
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) {

View file

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