@@ -8,21 +8,11 @@ return {
88 if not config .cmd and config .oe_jar_path then
99 config .cmd = {
1010 ' java' ,
11- ' --add-opens=java.base/java.lang=ALL-UNNAMED' ,
12- ' --add-opens=java.base/java.math=ALL-UNNAMED' ,
13- ' --add-opens=java.base/java.util=ALL-UNNAMED' ,
14- ' --add-opens=java.base/java.util.concurrent=ALL-UNNAMED' ,
15- ' --add-opens=java.base/java.net=ALL-UNNAMED' ,
16- ' --add-opens=java.base/java.text=ALL-UNNAMED' ,
1711 }
18- if config .debug then
19- config .cmd [# config .cmd + 1 ] = ' -Dorg.slf4j.simpleLogger.defaultLogLevel=DEBUG'
20- end
2112 config .cmd [# config .cmd + 1 ] = ' -jar'
2213 config .cmd [# config .cmd + 1 ] = config .oe_jar_path
23- if config .dlc then
24- config .cmd [# config .cmd + 1 ] = ' --dlc'
25- config .cmd [# config .cmd + 1 ] = config .dlc
14+ if config .debug then
15+ config .cmd [# config .cmd + 1 ] = ' --debug'
2616 end
2717 if config .trace then
2818 config .cmd [# config .cmd + 1 ] = ' --trace'
@@ -34,17 +24,29 @@ return {
3424 description = [[
3525[Language server](https://github.com/vscode-abl/vscode-abl) for Progress OpenEdge ABL.
3626
37- For manual installation, download abl-lsp.jar from the [VSCode
38- extension](https://github.com/vscode-abl/vscode-abl/releases/latest).
27+ For manual installation, download abl-lsda.jar from the [VSCode extension](https://github.com/vscode-abl/vscode-abl/releases/latest).
3928
4029Configuration
4130
4231```lua
43- require('lspconfig').['openedge_ls'].setup {
44- oe_jar_path = '/path/to/abl-lsp.jar',
45- dlc = '12.2:/path/to/dlc-12.2', -- Version number and OpenEdge root directory (colon separator)
32+ require('lspconfig').openedge_ls.setup {
33+ oe_jar_path = '/path/to/abl-lsda.jar',
4634 debug = false, -- Set to true for debug logging
47- trace = false -- Set to true for trace logging (REALLY verbose)
35+ trace = false, -- Set to true for trace logging (REALLY verbose)
36+ init_options = {
37+ abl = {
38+ configuration = {
39+ runtimes = {
40+ { name = '12.8', path = '/opt/progress/dlc' }
41+ },
42+ maxThreads = 1
43+ },
44+ completion = {
45+ upperCase = false
46+ },
47+ buildMode = 1 -- Build all
48+ }
49+ }
4850}
4951```
5052]] ,
0 commit comments