Commit Graph

10 Commits

Author SHA1 Message Date
4ad9bac50b refactor(editor): update Monaco editor type imports and state to use editor from monaco-editor 2025-03-01 23:19:35 +08:00
1893faad00 feat(store): persist language setting in code editor state 2025-03-01 23:14:29 +08:00
f63275334e feat(store): add result state to code editor store 2025-03-01 21:15:52 +08:00
e00741e48c feat(code-editor): add loading state management to improve editor initialization 2025-02-26 15:57:49 +08:00
50d1f4cf8e refactor(editor): update editor configuration paths and values 2025-02-25 14:39:55 +08:00
5cabdda667 feat(store): add editor state to useCodeEditor store 2025-02-24 13:21:45 +08:00
4cd56f6fab refactor(option): Rename code-editor-options.ts to option.ts and add wordWrap option
Renamed code-editor-options.ts to option.ts and added the wordWrap: "on" option to enable word wrapping in the code editor.
2025-02-23 15:05:46 +08:00
b2b6d1e484 feat(code-editor): Merge editor options and support dynamic font and line height adjustment
- In the CodeEditor component, merged the default CODE_EDITOR_OPTIONS with dynamic options returned by useCodeEditorOption to support runtime font size and line height adjustments.

- Additionally, added the useCodeEditorOption hook to useCodeEditor.ts to manage the state of font size and line height.

- This allows users to dynamically adjust the editor's display properties.
2025-02-23 14:23:59 +08:00
62149db922 feat(useCodeEditor): Add languageClient state to support language servers
- Introduces MonacoLanguageClient state to facilitate language server integration in the code editor.
2025-02-23 13:54:09 +08:00
1bc1b638e2 feat(store): add Zustand store for managing code editor language state 2025-02-20 14:04:36 +08:00