language server start

This commit is contained in:
nub31
2025-10-23 10:16:52 +02:00
parent 17a94272a2
commit ca3d8fcca9
30 changed files with 3944 additions and 125 deletions

View File

@@ -8,11 +8,21 @@ internal class HoverHandler : HoverHandlerBase
{
protected override HoverRegistrationOptions CreateRegistrationOptions(HoverCapability capability, ClientCapabilities clientCapabilities)
{
throw new NotImplementedException();
return new HoverRegistrationOptions
{
DocumentSelector = TextDocumentSelector.ForLanguage("nub-lang")
};
}
public override Task<Hover?> Handle(HoverParams request, CancellationToken cancellationToken)
public override async Task<Hover?> Handle(HoverParams request, CancellationToken cancellationToken)
{
throw new NotImplementedException();
return new Hover
{
Contents = new MarkedStringsOrMarkupContent(new MarkupContent
{
Value = "# uwu",
Kind = MarkupKind.Markdown,
})
};
}
}