Skip to content

Commit

Permalink
fix: fix throw error when no vscode keybind file (#3143)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sma1lboy authored Sep 14, 2024
1 parent 53a7f4e commit 6bddf96
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions clients/vscode/src/util/KeybindingParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { FocusKeybinding } from "tabby-chat-panel/index";
import { env, UIKind, Uri, workspace } from "vscode";
import os from "os";
import { join } from "path";
import { getLogger } from "../logger";

interface KeyBinding {
key: string;
Expand Down Expand Up @@ -75,8 +76,8 @@ export async function readUserKeybindingsConfig(): Promise<KeyBinding[] | undefi

return parsedContent;
} catch (error) {
console.error("Error reading keybindings file:", error);
throw error;
getLogger().info("There is no default keybindings file, using Tabby default keybindings");
return undefined;
}
}

Expand Down

0 comments on commit 6bddf96

Please sign in to comment.