summaryrefslogtreecommitdiff
path: root/content/posts/kate-lsp-client-progress.md
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2019-05-13 00:01:42 +0200
committerChristoph Cullmann <cullmann@kde.org>2019-05-13 00:01:42 +0200
commitc000bea3800ce5083c1ec05217279a469e3693e0 (patch)
treeeb719d547b49b8ec46d6f3ac78d4133ddb2d4f02 /content/posts/kate-lsp-client-progress.md
parentf53f236c455914b368393b6ee2c628a60061c560 (diff)
fix formatting
Diffstat (limited to 'content/posts/kate-lsp-client-progress.md')
-rw-r--r--content/posts/kate-lsp-client-progress.md6
1 files 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.