From 6d4b6e04429a463417190a27acfbb2f61afa69b4 Mon Sep 17 00:00:00 2001 From: Kamil Podsiadlo Date: Fri, 7 Jan 2022 17:03:04 +0100 Subject: [PATCH] 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": {