|
16 | 16 |
|
17 | 17 | (defcustom lsp-dylan-exe-pathname "dylan-lsp-server" |
18 | 18 | "Name of the dylan-lsp-server executable. |
19 | | - Must be an absolute pathname or the binary must be on your PATH." |
| 19 | +Must be an absolute pathname or the binary must be on your PATH." |
20 | 20 | :type 'string) |
21 | 21 |
|
22 | 22 | (defcustom lsp-dylan-extra-command-line-options '() |
23 | 23 | "List of command-line options to pass to dylan-lsp-server. |
24 | | - Possible values are \"--debug-opendylan\" and \"--debug-server\". |
25 | | - See `dylan-lsp-server --help` for more information on these options." |
| 24 | +Possible values are \"--debug-opendylan\" and \"--debug-server\". |
| 25 | +See `dylan-lsp-server --help` for more information on these options." |
26 | 26 | :type '(repeat string)) |
27 | 27 |
|
28 | 28 | (defcustom lsp-dylan-log-pathname nil |
29 | 29 | "Pathname of the server's log file. |
30 | | - The default is dylan-lsp-server.log, in the server's working directory, |
31 | | - which is normally the directory of the Dylan source file where the LSP |
32 | | - client was started." |
| 30 | +The default is dylan-lsp-server.log, in the server's working directory, |
| 31 | +which is normally the directory of the Dylan source file where the LSP |
| 32 | +client was started." |
33 | 33 | :type 'file) |
34 | 34 |
|
35 | 35 | (defcustom lsp-dylan-open-dylan-release nil |
36 | 36 | "Absolute pathname of the Open Dylan installation directory. |
37 | | - If nil, infer the installation directory from the location |
38 | | - of the dylan-compiler binary, which must be on the path." |
| 37 | +If nil, infer the installation directory from the location |
| 38 | +of the dylan-compiler binary, which must be on the path." |
| 39 | + :type '(choice string (const nil))) |
| 40 | + |
| 41 | +(defcustom lsp-dylan-open-dylan-registry nil |
| 42 | + "Absolute pathname of the Open Dylan registry directory. If you expect to |
| 43 | +modify Open Dylan libraries point this at the registry in your Git checkout so |
| 44 | +that lsp-dylan will use the sources you are working on. |
| 45 | +
|
| 46 | +If nil, the registry in `lsp-dylan-open-dylan-release'/sources/registry is |
| 47 | +used." |
39 | 48 | :type '(choice string (const nil))) |
40 | 49 |
|
41 | 50 | (add-to-list 'lsp-language-id-configuration '(dylan-mode . "dylan")) |
|
65 | 74 | (getenv "OPEN_DYLAN_RELEASE_INSTALL") |
66 | 75 | (lsp-dylan--infer-install-dir) |
67 | 76 | (error "Can't find Open Dylan install directory"))) |
68 | | - (registry-dir (or (getenv "OPEN_DYLAN_USER_REGISTRIES") |
| 77 | + (registry-dir (or lsp-dylan-open-dylan-registry |
| 78 | + (getenv "OPEN_DYLAN_USER_REGISTRIES") |
69 | 79 | (expand-file-name "sources/registry" |
70 | 80 | (file-name-as-directory install-dir))))) |
71 | 81 | (list |
|
0 commit comments