File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -701,7 +701,7 @@ See #2675"
701
701
(lsp-completion--fix-resolve-data item)
702
702
(or (ignore-errors
703
703
(when (lsp-feature? " completionItem/resolve" )
704
- (lsp-request " completionItem/resolve" item)))
704
+ (lsp-request " completionItem/resolve" (lsp-delete item :_emacsStartPoint ) )))
705
705
item))
706
706
707
707
(defun lsp-completion--resolve-async (item callback &optional cleanup-fn )
@@ -711,7 +711,7 @@ The CLEANUP-FN will be called to cleanup."
711
711
(lsp-completion--fix-resolve-data item)
712
712
(ignore-errors
713
713
(if (lsp-feature? " completionItem/resolve" )
714
- (lsp-request-async " completionItem/resolve" item
714
+ (lsp-request-async " completionItem/resolve" (lsp-delete item :_emacsStartPoint )
715
715
(lambda (result )
716
716
(funcall callback result)
717
717
(when cleanup-fn (funcall cleanup-fn)))
Original file line number Diff line number Diff line change @@ -262,7 +262,10 @@ Allowed params: %s" interface (reverse (-map #'cl-first params)))
262
262
(defun lsp-member? (from key )
263
263
(when (listp from)
264
264
(plist-member from key)))
265
- (defalias 'lsp-structure-p 'json-plist-p ))
265
+ (defalias 'lsp-structure-p 'json-plist-p )
266
+ (defun lsp-delete (from key )
267
+ (cl-remf from key)
268
+ from))
266
269
(defun lsp-get (from key )
267
270
(when from
268
271
(gethash (lsp-keyword->string key) from)))
@@ -279,7 +282,10 @@ Allowed params: %s" interface (reverse (-map #'cl-first params)))
279
282
(when (hash-table-p from)
280
283
(not (eq (gethash (lsp-keyword->string key) from :__lsp_default )
281
284
:__lsp_default ))))
282
- (defalias 'lsp-structure-p 'hash-table-p ))
285
+ (defalias 'lsp-structure-p 'hash-table-p )
286
+ (defun lsp-delete (from key )
287
+ (ht-remove from (lsp-keyword->string key))
288
+ from))
283
289
284
290
(defmacro lsp-defun (name match-form &rest body )
285
291
" Define a function named NAME.
You can’t perform that action at this time.
0 commit comments