Skip to content

Commit c1996c6

Browse files
authored
Remove `lsp--ht-get' (#2523)
ht.el has now merged a fix for `ht-get*'.
1 parent b6f5f02 commit c1996c6

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

clients/lsp-svelte.el

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -274,12 +274,9 @@ Example: '((css-unused-selector . ignore) (unused-export-let . error))"
274274
"svelte"))
275275
:initialization-options
276276
(lambda ()
277-
;; XXX: workaround for https://github.com/Wilfred/ht.el/issues/38
278-
;; Use `ht-get*' instead of `lsp--ht-get' when
279-
;; https://github.com/Wilfred/ht.el/pull/39 is merged
280-
(list :config (lsp--ht-get (lsp-configuration-section "svelte.plugin")
281-
"svelte"
282-
"plugin")
277+
(list :config (ht-get* (lsp-configuration-section "svelte.plugin")
278+
"svelte"
279+
"plugin")
283280
:prettierConfig (lsp-configuration-section "prettier")
284281
:emmetConfig (lsp-configuration-section "emmet")
285282
:typescriptConfig: (list :typescript (lsp-configuration-section "typescript")

lsp-mode.el

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2001,14 +2001,6 @@ WORKSPACE is the workspace that contains the diagnostics."
20012001

20022002

20032003

2004-
(defun lsp--ht-get (tbl &rest keys)
2005-
"Get nested KEYS in TBL."
2006-
(let ((val tbl))
2007-
(while (and keys val)
2008-
(setq val (ht-get val (cl-first keys)))
2009-
(setq keys (cl-rest keys)))
2010-
val))
2011-
20122004
;; textDocument/foldingRange support
20132005

20142006
(cl-defstruct lsp--folding-range beg end kind children)

0 commit comments

Comments
 (0)