Skip to content

Commit

Permalink
[beancount] Fix lsp-beancount-journal-file (#4702)
Browse files Browse the repository at this point in the history
* nit(beancount): fix whitespace

* fix(beancount): update journal file init option

v1.0.0 of beancount-language-server rewrote everything in Rust (formerly
TypeScript), and, as part of the major version, changed the journal file
init option from camel case to snake case.

See: polarmutex/beancount-language-server#34
Ref: d4fb18c

* doc: update changelog

Ref: 0657c7f
  • Loading branch information
dustinfarris authored Feb 3, 2025
1 parent e1857fd commit 230608a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.org
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
* Changelog
** Unreleased 9.0.1
* Fix beancount journal file init option
* Add support for [[https://github.com/glehmann/earthlyls][earthlyls]]
* Add support for GNAT Project (~gpr-mode~, ~gpr-ts-mode~).
* Add SQL support
Expand Down
4 changes: 2 additions & 2 deletions clients/lsp-beancount.el
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ Use nil (the default) to use the current beancount buffer as the journal file."
:new-connection
(lsp-stdio-connection
(lambda ()
`(,lsp-beancount-langserver-executable "--stdio")))
`(,lsp-beancount-langserver-executable "--stdio")))
:major-modes '(beancount-mode)
:initialization-options
`((journalFile . ,lsp-beancount-journal-file))
`((journal_file . ,lsp-beancount-journal-file))
:server-id 'beancount-ls))

(lsp-consistency-check lsp-beancount)
Expand Down

0 comments on commit 230608a

Please sign in to comment.