diff options
| author | Gilles Querret <g.querret@riverside-software.fr> | 2025-04-07 11:54:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-07 02:54:07 -0700 |
| commit | 442e077e326ac467daf9cd63e72120fb450a850b (patch) | |
| tree | 839ac4816c5d2b26b6f587baf9cc5d731c957067 /lua/lspconfig | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-442e077e326ac467daf9cd63e72120fb450a850b.tar nvim-lspconfig-442e077e326ac467daf9cd63e72120fb450a850b.tar.gz nvim-lspconfig-442e077e326ac467daf9cd63e72120fb450a850b.tar.bz2 nvim-lspconfig-442e077e326ac467daf9cd63e72120fb450a850b.tar.lz nvim-lspconfig-442e077e326ac467daf9cd63e72120fb450a850b.tar.xz nvim-lspconfig-442e077e326ac467daf9cd63e72120fb450a850b.tar.zst nvim-lspconfig-442e077e326ac467daf9cd63e72120fb450a850b.zip | |
fix(openedge_ls): update configuration #3623
* Changed Jar file name
* New 'debug' attribute
* Send 'init_options' object to language server
Diffstat (limited to 'lua/lspconfig')
| -rw-r--r-- | lua/lspconfig/configs/openedge_ls.lua | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/lua/lspconfig/configs/openedge_ls.lua b/lua/lspconfig/configs/openedge_ls.lua index b84b5f48..5a204cc1 100644 --- a/lua/lspconfig/configs/openedge_ls.lua +++ b/lua/lspconfig/configs/openedge_ls.lua @@ -8,21 +8,11 @@ return { if not config.cmd and config.oe_jar_path then config.cmd = { 'java', - '--add-opens=java.base/java.lang=ALL-UNNAMED', - '--add-opens=java.base/java.math=ALL-UNNAMED', - '--add-opens=java.base/java.util=ALL-UNNAMED', - '--add-opens=java.base/java.util.concurrent=ALL-UNNAMED', - '--add-opens=java.base/java.net=ALL-UNNAMED', - '--add-opens=java.base/java.text=ALL-UNNAMED', } - if config.debug then - config.cmd[#config.cmd + 1] = '-Dorg.slf4j.simpleLogger.defaultLogLevel=DEBUG' - end config.cmd[#config.cmd + 1] = '-jar' config.cmd[#config.cmd + 1] = config.oe_jar_path - if config.dlc then - config.cmd[#config.cmd + 1] = '--dlc' - config.cmd[#config.cmd + 1] = config.dlc + if config.debug then + config.cmd[#config.cmd + 1] = '--debug' end if config.trace then config.cmd[#config.cmd + 1] = '--trace' @@ -34,17 +24,29 @@ return { description = [[ [Language server](https://github.com/vscode-abl/vscode-abl) for Progress OpenEdge ABL. -For manual installation, download abl-lsp.jar from the [VSCode -extension](https://github.com/vscode-abl/vscode-abl/releases/latest). +For manual installation, download abl-lsda.jar from the [VSCode extension](https://github.com/vscode-abl/vscode-abl/releases/latest). Configuration ```lua -require('lspconfig').['openedge_ls'].setup { - oe_jar_path = '/path/to/abl-lsp.jar', - dlc = '12.2:/path/to/dlc-12.2', -- Version number and OpenEdge root directory (colon separator) +require('lspconfig').openedge_ls.setup { + oe_jar_path = '/path/to/abl-lsda.jar', debug = false, -- Set to true for debug logging - trace = false -- Set to true for trace logging (REALLY verbose) + trace = false, -- Set to true for trace logging (REALLY verbose) + init_options = { + abl = { + configuration = { + runtimes = { + { name = '12.8', path = '/opt/progress/dlc' } + }, + maxThreads = 1 + }, + completion = { + upperCase = false + }, + buildMode = 1 -- Build all + } + } } ``` ]], |
