mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-23 20:54:50 +03:00
added CodeEditorSettings type in settings
This commit is contained in:
parent
ce3e718d29
commit
475975b0f4
@ -4,6 +4,10 @@ const SETTINGS_KEY = 'settings-json';
|
||||
export const SETTINGS = Symbol('Settings');
|
||||
|
||||
export type ScrollbarVisilitySettings = 'scroll' | 'hover' | 'always';
|
||||
export type CodeEditorSettings = {
|
||||
schemeIdentifer: string;
|
||||
displayName: string;
|
||||
};
|
||||
|
||||
export interface Settings {
|
||||
aiSummariesEnabled?: boolean;
|
||||
@ -22,7 +26,7 @@ export interface Settings {
|
||||
diffFont: string;
|
||||
diffLigatures: boolean;
|
||||
inlineUnifiedDiffs: boolean;
|
||||
defaultCodeEditor: string;
|
||||
defaultCodeEditor: CodeEditorSettings;
|
||||
}
|
||||
|
||||
const defaults: Settings = {
|
||||
@ -41,7 +45,7 @@ const defaults: Settings = {
|
||||
diffFont: 'Geist Mono, Menlo, monospace',
|
||||
diffLigatures: false,
|
||||
inlineUnifiedDiffs: false,
|
||||
defaultCodeEditor: 'vscode'
|
||||
defaultCodeEditor: { schemeIdentifer: 'vscode', displayName: 'VSCode' }
|
||||
};
|
||||
|
||||
export function loadUserSettings(): Writable<Settings> {
|
||||
|
Loading…
Reference in New Issue
Block a user