From 040c81bf13cf1800e5614ce2931a624a080fa3e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20W=C4=85sowski?= Date: Wed, 18 Sep 2024 17:14:04 +0200 Subject: [PATCH] Add escriptPath configuration option (#163) --- client/src/client.ts | 13 +++++++++---- client/src/debugger.ts | 2 +- package.json | 6 ++++++ 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/client/src/client.ts b/client/src/client.ts index 8a14253..7257c74 100644 --- a/client/src/client.ts +++ b/client/src/client.ts @@ -101,13 +101,18 @@ export async function get_client(context: ExtensionContext): Promise('dapPath') || ''; - let command = 'escript'; + const command = erlangConfig.getConfiguration('erlang_ls').get('escriptPath') || 'escript'; let args; if (executable.length > 0) { diff --git a/package.json b/package.json index 4636c90..625fa3a 100644 --- a/package.json +++ b/package.json @@ -64,6 +64,12 @@ "default": "", "description": "Override the default path of the els_dap executable with a custom one." }, + "erlang_ls.escriptPath": { + "scope": "window", + "type": "string", + "default": "", + "description": "Override the default path of the escript executable with a custom one." + }, "erlang_ls.logPath": { "scope": "window", "type": "string",