From 60eeb5e749704338bab3d26924520eb8a8b1f932 Mon Sep 17 00:00:00 2001 From: Peng Cheng Date: Fri, 24 Oct 2025 17:04:06 -0400 Subject: [PATCH] scala metals template is now consistent with command in installer.json in scala/metals, isHttpEnabled is true by default --- .../resources/templates/lsp/metals/initializationOptions.json | 3 +++ src/main/resources/templates/lsp/metals/template.json | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 src/main/resources/templates/lsp/metals/initializationOptions.json diff --git a/src/main/resources/templates/lsp/metals/initializationOptions.json b/src/main/resources/templates/lsp/metals/initializationOptions.json new file mode 100644 index 000000000..009a0de68 --- /dev/null +++ b/src/main/resources/templates/lsp/metals/initializationOptions.json @@ -0,0 +1,3 @@ +{ + "isHttpEnabled": true +} \ No newline at end of file diff --git a/src/main/resources/templates/lsp/metals/template.json b/src/main/resources/templates/lsp/metals/template.json index f3a0790d6..8add4a89b 100644 --- a/src/main/resources/templates/lsp/metals/template.json +++ b/src/main/resources/templates/lsp/metals/template.json @@ -2,8 +2,8 @@ "id": "metals", "name": "Scala Language Server (Metals)", "programArgs": { - "windows": "\"${BASE_DIR}/metals.bat\"", - "default": "\"${BASE_DIR}/metals\"" + "windows": "\"$USER_HOME$/.lsp4ij/lsp/metals/metals.bat\"", + "default": "\"$USER_HOME$/.lsp4ij/lsp/metals/metals\"" }, "expandConfiguration": true, "fileTypeMappings": [