File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -388,7 +388,7 @@ to the language server."
388388 buffer-file-name)
389389 (let ((eol (line-end-position ))
390390 (bol (line-beginning-position ))
391- (line ( line-number-at-pos ))
391+ (tag (lsp-ui-sideline--calculate-tag ))
392392 (line-widen (save-excursion (widen ) (line-number-at-pos )))
393393 (doc-id (lsp--text-document-identifier)))
394394 (save-excursion
@@ -424,14 +424,14 @@ to the language server."
424424 (outside-comment (eq (nth 4 parsing-state) nil )))
425425 ; ; Skip strings and comments
426426 (when (and symbol (not in-string) outside-comment)
427- (push (list symbol line bounds (lsp--position (1- line-widen) (lsp--cur-column))) symbols))))
427+ (push (list symbol tag bounds (lsp--position (1- line-widen) (lsp--cur-column))) symbols))))
428428 (dolist (entry symbols)
429- (-let [(symbol line bounds position) entry]
429+ (-let [(symbol tag bounds position) entry]
430430 (lsp--send-request-async
431431 (lsp--make-request
432432 " textDocument/hover"
433433 (list :textDocument doc-id :position position))
434- (lambda (info ) (if info (lsp-ui-sideline--push-info symbol line bounds info))))))))))))
434+ (lambda (info ) (if info (lsp-ui-sideline--push-info symbol tag bounds info))))))))))))
435435
436436(defun lsp-ui-sideline--stop-p ()
437437 " Return non-nil if the sideline should not be display."
You can’t perform that action at this time.
0 commit comments