Skip to content

Commit 3e08947

Browse files
authored
fix(beancount): defer evaluation of initialization options (#4833)
Per-project `journal_file` configuration was being ignored, as the backquote expansion is too eager (load time, not execution time)
1 parent 1472333 commit 3e08947

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.org

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@
228228
* Add support for signatureHelp using ~posframe~. #1999
229229
* Add ~iedit~ integration. #2478
230230
* Add client for Verible SystemVerilog language Server ([[https://github.com/chipsalliance/verible]])
231+
* Add support for per-project Beancount initialization-options
231232

232233
** Release 7.0.1
233234
* Introduced ~lsp-diagnostics-mode~.

clients/lsp-beancount.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ Use nil (the default) to use the current beancount buffer as the journal file."
5555
`(,lsp-beancount-langserver-executable "--stdio")))
5656
:major-modes '(beancount-mode)
5757
:initialization-options
58-
`((journal_file . ,lsp-beancount-journal-file))
58+
(lambda ()
59+
`((journal_file . ,lsp-beancount-journal-file)))
5960
:server-id 'beancount-ls))
6061

6162
(lsp-consistency-check lsp-beancount)

0 commit comments

Comments
 (0)