Commit Graph

19 Commits

Author SHA1 Message Date
88be7cbf58 fix(layout): adjust height calculations for improved layout consistency 2025-02-23 20:31:28 +08:00
6f2d853531 feat(code-editor): use default file path for code editor based on language 2025-02-23 16:11:53 +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
5af57fbfcf refactor(code-editor): improve commented validation logging for better debugging 2025-02-23 13:56:11 +08:00
9e1bca2cce feat(code-editor): enhance language client integration with dynamic server configuration 2025-02-23 13:55:37 +08:00
9aa8b7e211 refactor(code-editor): optimize dynamic imports and code structure 2025-02-22 11:47:00 +08:00
9a04f90538 feat(code-editor): adjust height calculation for code editor component 2025-02-21 19:49:50 +08:00
162825250b feat(code-editor): add loading skeleton for dynamic editor component 2025-02-20 15:43:03 +08:00
d3d27768fb feat(code-editor): update default value for code editor based on language 2025-02-20 14:14:04 +08:00
6329babfca feat(code-editor): use Zustand state for dynamic language selection 2025-02-20 14:06:13 +08:00
75f1e656e6 chore(editor): comment out onValidate function in CodeEditor component 2025-02-20 09:17:31 +08:00
07e3707c3f feat(editor): use predefined options for code editor configuration 2025-02-20 09:11:31 +08:00
3f2bc8c332 chore: replace hardcoded WebSocket URL with environment variable
- Replaced the hardcoded LSP WebSocket URL with a configurable environment variable (NEXT_PUBLIC_LSP_C_URL).
- Default to "ws://localhost:4594/clangd" if the environment variable is not set.
2025-02-20 08:44:11 +08:00
f0b2428e8b fix(code-editor): adjust loading skeleton padding for improved layout 2025-02-20 01:05:30 +08:00
63501a3f6c feat(code-editor): refactor layout structure and improve editor height handling 2025-02-20 00:59:53 +08:00
423951ec58 feat(code-editor): update theme handling and optimize highlighter integration 2025-02-20 00:30:45 +08:00
fd48fa0fff feat(code-editor): integrate Shiki highlighter for enhanced syntax highlighting 2025-02-19 23:03:11 +08:00
9c9ed0ddd0 refactor: Move code editor logic to CodeEditor component 2025-02-19 22:46:30 +08:00