diff --git a/client/src/client.ts b/client/src/client.ts index 06c4a37..dd97827 100644 --- a/client/src/client.ts +++ b/client/src/client.ts @@ -18,6 +18,11 @@ export async function activate(context: ExtensionContext) { workspace.createFileSystemWatcher('**/rebar.config'), workspace.createFileSystemWatcher('**/rebar.lock') ] + }, + initializationOptions: { + erlang: { + config_path: workspace.getConfiguration('erlang_ls').get('config.path'), + } } }; diff --git a/package.json b/package.json index 286935e..6bc1854 100644 --- a/package.json +++ b/package.json @@ -55,6 +55,11 @@ "description": "Override the default path of the erlang_ls executable with a custom one." }, + "erlang_ls.config.path": { + "type": "string", + "description": "Path to the erlang_ls.config file. This can either be absolute or relative to the project root", + "default": "" + }, "erlang_ls.logPath": { "scope": "window", "type": "string", @@ -77,6 +82,7 @@ "default": "info", "description": "Log level of LS server" } + } }, "languages": [