Add SQL, Erlang, and Forth highlighter implementations and tests for LSP process and transport handling.
- Added highlighters for new languages (SQL, Erlang, Forth) with filetype recognition. - Updated and reorganized syntax files to maintain consistency and modularity. - Introduced LSP transport framing unit tests and JSON decoding/dispatch tests. - Refactored `LspManager`, integrating UTF-16/UTF-8 position conversions and robust diagnostics handling. - Enhanced server start/restart logic with workspace root detection and logging to improve LSP usability.
This commit is contained in:
@@ -14,6 +14,21 @@ public:
|
||||
~TerminalRenderer() override;
|
||||
|
||||
void Draw(Editor &ed) override;
|
||||
|
||||
// Enable/disable UTF-8 aware rendering (set by TerminalFrontend after locale init)
|
||||
void SetUtf8Enabled(bool on)
|
||||
{
|
||||
utf8_enabled_ = on;
|
||||
}
|
||||
|
||||
|
||||
[[nodiscard]] bool Utf8Enabled() const
|
||||
{
|
||||
return utf8_enabled_;
|
||||
}
|
||||
|
||||
private:
|
||||
bool utf8_enabled_ = true;
|
||||
};
|
||||
|
||||
#endif // KTE_TERMINAL_RENDERER_H
|
||||
#endif // KTE_TERMINAL_RENDERER_H
|
||||
Reference in New Issue
Block a user