From 6d4b6e04429a463417190a27acfbb2f61afa69b4 Mon Sep 17 00:00:00 2001 From: Kamil Podsiadlo Date: Fri, 7 Jan 2022 17:03:04 +0100 Subject: [PATCH 1/2] Add `Start Metals` button --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3fe1b70cc..15bada7ea 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "Debuggers" ], "activationEvents": [ + "onCommand:metals.start-server", "onCommand:metals.new-scala-project", "onDebugResolve:scala", "onLanguage:scala", @@ -125,8 +126,8 @@ "viewsWelcome": [ { "view": "metalsPackages", - "contents": "No Scala project found.\n[New Scala project](command:metals.new-scala-project)", - "when": "workbenchState != empty" + "contents": "No Scala project found. Create a new one or start Metals manually.\n[New Scala project](command:metals.new-scala-project)\n[Start Metals server](command:metals.start-server)", + "when": "!metals:enabled || workbenchState != empty" } ], "views": { From 43b52b3c4e6f7ed485124c3c0be59016de9f5b23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Podsiad=C5=82o?= <37124721+kpodsiad@users.noreply.github.com> Date: Fri, 7 Jan 2022 19:42:37 +0100 Subject: [PATCH 2/2] Update package.json Co-authored-by: Tomasz Godzik --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 15bada7ea..8f74608f6 100644 --- a/package.json +++ b/package.json @@ -126,7 +126,7 @@ "viewsWelcome": [ { "view": "metalsPackages", - "contents": "No Scala project found. Create a new one or start Metals manually.\n[New Scala project](command:metals.new-scala-project)\n[Start Metals server](command:metals.start-server)", + "contents": "No Scala project found. Create a new one or start Metals manually.\n[New Scala project](command:metals.new-scala-project)\n[Start Metals](command:metals.start-server)", "when": "!metals:enabled || workbenchState != empty" } ],