LSP integration steps 1-4, part of 5.
This commit is contained in:
53
lsp/TerminalDiagnosticDisplay.cc
Normal file
53
lsp/TerminalDiagnosticDisplay.cc
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* TerminalDiagnosticDisplay.cc - minimal stub implementation
|
||||
*/
|
||||
#include "TerminalDiagnosticDisplay.h"
|
||||
|
||||
#include "../TerminalRenderer.h"
|
||||
|
||||
namespace kte::lsp {
|
||||
TerminalDiagnosticDisplay::TerminalDiagnosticDisplay(TerminalRenderer *renderer)
|
||||
: renderer_(renderer) {}
|
||||
|
||||
|
||||
void
|
||||
TerminalDiagnosticDisplay::updateDiagnostics(const std::string &uri,
|
||||
const std::vector<Diagnostic> &diagnostics)
|
||||
{
|
||||
(void) uri;
|
||||
(void) diagnostics;
|
||||
// Stub: no rendering yet. Future: gutter markers, underlines, virtual text.
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
TerminalDiagnosticDisplay::showInlineDiagnostic(const Diagnostic &diagnostic)
|
||||
{
|
||||
(void) diagnostic;
|
||||
// Stub: show as message line in future.
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
TerminalDiagnosticDisplay::showDiagnosticList(const std::vector<Diagnostic> &diagnostics)
|
||||
{
|
||||
(void) diagnostics;
|
||||
// Stub: open a panel/list in future.
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
TerminalDiagnosticDisplay::hideDiagnosticList()
|
||||
{
|
||||
// Stub
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
TerminalDiagnosticDisplay::updateStatusBar(int errorCount, int warningCount)
|
||||
{
|
||||
(void) errorCount;
|
||||
(void) warningCount;
|
||||
// Stub: integrate with status bar rendering later.
|
||||
}
|
||||
} // namespace kte::lsp
|
||||
Reference in New Issue
Block a user