fix: apply global editor settings from app preferences

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2021-10-06 17:38:18 +03:00
1 parent c4aa88183f
commit e66ed4709b
4 files changed
+57 -45

No files matched your search

+9 -10
View File
@@ -24,27 +24,26 @@ import path from "path";
import os from "os";
import { ThemeStore } from "../../renderer/theme.store";
import { ObservableToggleSet } from "../utils";
import type * as monaco from "monaco-editor";
import type { editor } from "monaco-editor";
import merge from "lodash/merge";
export interface KubeconfigSyncEntry extends KubeconfigSyncValue {
filePath: string;
}
export interface KubeconfigSyncValue { }
export interface EditorConfiguration {
miniMap: monaco.editor.IEditorMinimapOptions;
lineNumbers: monaco.editor.LineNumbersType;
tabSize: number;
export interface KubeconfigSyncValue {
}
export type EditorConfiguration = Pick<editor.IStandaloneEditorConstructionOptions,
"minimap" | "tabSize" | "lineNumbers">;
export const defaultEditorConfig: EditorConfiguration = {
tabSize: 2,
lineNumbers: "on",
miniMap: {
enabled: true
minimap: {
enabled: true,
side: "right",
},
tabSize: 2
};
interface PreferenceDescription<T, R = T> {