ide tolower case just to be safe
This commit is contained in:
parent
8fc5c90d34
commit
c84b2d64c4
3 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue