mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix: apply global editor settings from app preferences
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
1 parent
c4aa88183f
commit
e66ed4709b
4 files changed
+57
-45
No files matched your search
@@ -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> {
|
||||
|
||||
Reference in new issue
Block a user