🐛 fix(editor): Enhance Go Template Editor with schema support and improved completion

This commit is contained in:
web
2025-08-12 12:32:00 -07:00
committed by speakeloudest
parent 037240f6a5
commit d76c3e06c3
3 changed files with 1023 additions and 242 deletions
File diff suppressed because it is too large Load Diff
@@ -17,6 +17,7 @@ export interface MonacoEditorProps {
placeholder?: string;
render?: (value?: string) => React.ReactNode;
onMount?: OnMount;
beforeMount?: (monaco: Monaco) => void;
language?: string;
className?: string;
}
@@ -39,6 +40,7 @@ export function MonacoEditor({
placeholder = 'Start typing...',
render,
onMount,
beforeMount,
language = 'markdown',
className,
}: MonacoEditorProps) {
@@ -154,6 +156,9 @@ export function MonacoEditor({
'editor.background': '#00000000',
},
});
if (beforeMount) {
beforeMount(monaco);
}
}}
/>
{!internalValue?.trim() && placeholder && (