From 924fa9bcbb45fdc4f5f53edc30dff5903a00fa9f Mon Sep 17 00:00:00 2001 From: Michael <59754757+drazzilb91@users.noreply.github.com> Date: Sun, 10 Mar 2024 18:20:29 -0600 Subject: [PATCH] Enhanced UI integration with Preview Maps button. Added "Display Map" preview button to the editor menu as well as the explorer context menu for easier access to preview Wardley map files. Additionally, added icon support for the "Display Map" command. --- package.json | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index abb698b..304631d 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,11 @@ { "command": "vscode-wardley-maps.display-map", "title": "Display Map", - "category": "Wardley Maps" + "category": "Wardley Maps", + "icon": { + "light": "./images/icon.png", + "dark": "./images/icon.png" + } }, { "command": "vscode-wardley-maps.example-map", @@ -85,14 +89,30 @@ "command": "vscode-wardley-maps.export-to-owm", "title": "Publish to OnlineWardleyMaps.com", "category": "Wardley Maps" - } - , + }, { "command": "vscode-wardley-maps.generate-clone-url", "title": "Publish & Generate Clone URL", "category": "Wardley Maps" } ], + "menus": { + "editor/title": [ + { + "when": "resourceLangId == wardleymap", + "command": "vscode-wardley-maps.display-map", + "alt": "wardleymap.showPreview", + "group": "navigation" + } + ], + "explorer/context": [ + { + "when": "resourceLangId == wardleymap", + "command": "vscode-wardley-maps.display-map", + "group": "navigation" + } + ] + }, "languages": [ { "id": "wardleymap",