summaryrefslogtreecommitdiff
path: root/signature-help.c
blob: df8c56499302e0a356ede06bdb1fa45187460e7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// deals with textDocument/signatureHelp LSP requests

void signature_help_open(Ted *ted, char32_t trigger) {
	(void)trigger; // for now we don't send context
	TextBuffer *buffer = ted->active_buffer;
	if (!buffer) return;
	LSP *lsp = buffer_lsp(buffer);
	LSPRequest request  = {.type = LSP_REQUEST_SIGNATURE_HELP};
	LSPRequestSignatureHelp *s = &request.data.signature_help;
	s->position = buffer_cursor_pos_as_lsp_document_position(buffer);
	lsp_send_request(lsp, &request);
}