From c000bea3800ce5083c1ec05217279a469e3693e0 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Mon, 13 May 2019 00:01:42 +0200 Subject: [PATCH] fix formatting --- content/posts/kate-lsp-client-progress.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/content/posts/kate-lsp-client-progress.md b/content/posts/kate-lsp-client-progress.md index dfc663a..8370fe2 100644 --- a/content/posts/kate-lsp-client-progress.md +++ b/content/posts/kate-lsp-client-progress.md @@ -1,6 +1,6 @@ --- title: "Kate LSP Client Progress" -date: 2019-05-12T23:54:00+02:00 +date: 2019-05-13T00:02:00+02:00 draft: false categories: [kde, kate, development] tags: [kde, kate] @@ -15,9 +15,7 @@ For example, if you use the CMake Kate project generator and you compile Kate fr If you press ALT-1 over some identifier, you will get some debug output on the console about found links, like below: -{{< highlight bash >}} -qtc.languageclient.parse: content: "{\"id\":\"{812e04c6-2bca-42e3-a632-d616fdc2f7d4}\",\"jsonrpc\":\"2.0\",\"result\":[{\"range\":{\"end\":{\"character\":20,\"line\":67},\"start\":{\"character\":6,\"line\":67}},\"uri\":\"file:///local/cullmann/kde/src/kate/kate/katemainwindow.h\"}]}" -{{< / highlight >}} +> qtc.languageclient.parse: content: "{\"id\":\"{812e04c6-2bca-42e3-a632-d616fdc2f7d4}\",\"jsonrpc\":\"2.0\",\"result\":[{\"range\":{\"end\":{\"character\":20,\"line\":67},\"start\":{\"character\":6,\"line\":67}},\"uri\":\"file:///local/cullmann/kde/src/kate/kate/katemainwindow.h\"}]}" The current ALT-1 handling is a big hack, as then one just adds the current document and triggers the GotoDefinitionRequest. A proper implementation tracks the opened/closed documented of the editor.