Skip to content

Commit 12ce064

Browse files
committed
Fix #24
1 parent 62a86a2 commit 12ce064

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

cquery-semantic-highlighting.el

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -218,16 +218,6 @@ If nil, disable semantic highlighting."
218218
(1 (funcall fn cquery-sem-function-faces))
219219
(_ (funcall fn cquery-sem-variable-faces)))))))
220220

221-
(defun cquery--read-semantic-ranges (symbol face)
222-
(--map (let ((start (gethash "start" it))
223-
(end (gethash "end" it)))
224-
(list (cons (gethash "line" start)
225-
(gethash "character" start))
226-
(cons (gethash "line" end)
227-
(gethash "character" end))
228-
face))
229-
(gethash "ranges" symbol)))
230-
231221
(defun cquery--publish-semantic-highlighting (_workspace params)
232222
"Publish semantic highlighting information according to PARAMS."
233223
(when cquery-sem-highlight-method

cquery.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
(require 'cquery-inheritance-hierarchy)
4444
(require 'cquery-member-hierarchy)
4545

46-
(require 'ht)
4746
(require 'seq)
4847

4948
;; ---------------------------------------------------------------------
@@ -129,7 +128,7 @@ root location or `nil' if another matcher should be used instead.
129128
(lsp--cur-workspace-check)
130129
(-when-let* ((mode major-mode)
131130
(info (cquery-file-info))
132-
(args (seq-into (ht-get info "args") 'vector))
131+
(args (seq-into (gethash "args" info) 'vector))
133132
(new-args (let ((i 0) ret)
134133
(while (< i (length args))
135134
(let ((arg (elt args i)))

0 commit comments

Comments
 (0)