/**
 * CodeMirror 统一导出
 * 确保所有模块使用同一个 CodeMirror 实例，避免多实例问题
 */

// Core
export { EditorView, lineNumbers, highlightActiveLineGutter, keymap } from '@codemirror/view'
export { EditorState, Compartment } from '@codemirror/state'
export { defaultKeymap, history, historyKeymap } from '@codemirror/commands'
export { bracketMatching, defaultHighlightStyle, syntaxHighlighting } from '@codemirror/language'
export { oneDark } from '@codemirror/theme-one-dark'

// 查找替换
export { openSearchPanel, closeSearchPanel, search, searchKeymap, SearchQuery } from '@codemirror/search'

// 语言包通过 codeMirrorLoader 动态导入，避免全量打包
