This is an automated email from the ASF dual-hosted git repository.

jw3 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil-vscode.git


The following commit(s) were added to refs/heads/main by this push:
     new 7ce383f  Add toolbar icons for opening infoset, infoset-diff and 
hexview
7ce383f is described below

commit 7ce383f6cb9f0d167767e602ba4fd26619b86558
Author: Shane Dell <[email protected]>
AuthorDate: Thu Oct 14 11:59:17 2021 -0400

    Add toolbar icons for opening infoset, infoset-diff and hexview
---
 package.json | 34 +++++++++++++++++++++++++++-------
 1 file changed, 27 insertions(+), 7 deletions(-)

diff --git a/package.json b/package.json
index 969ea8c..83915fd 100644
--- a/package.json
+++ b/package.json
@@ -81,6 +81,23 @@
       }
     ],
     "menus": {
+      "editor/title": [
+        {
+          "command": "hexview.display",
+          "when": "resourceLangId == xml",
+          "group": "navigation@3"
+        },
+        {
+          "command": "infoset.display",
+          "when": "resourceLangId == xml",
+          "group": "navigation@1"
+        },
+        {
+          "command": "infoset.diff",
+          "when": "resourceLangId == xml",
+          "group": "navigation@2"
+        }
+      ],
       "editor/title/run": [
         {
           "command": "extension.dfdl-debug.runEditorContents",
@@ -133,23 +150,26 @@
         "command": "hexview.display",
         "title": "Display the hex view",
         "category": "Daffodil Debug",
-        "enablement": "inDebugMode"
+        "enablement": "inDebugMode",
+        "icon": "$(file-binary)"
       },
       {
         "command": "infoset.display",
         "title": "Display the infoset view",
         "category": "Daffodil Debug",
-        "enablement": "inDebugMode"
+        "enablement": "inDebugMode",
+        "icon": "$(file-code)"
       },
       {
-        "command": "infoset.save",
-        "title": "Save the current infoset",
+        "command": "infoset.diff",
+        "title": "View infoset diff",
         "category": "Daffodil Debug",
-        "enablement": "inDebugMode"
+        "enablement": "inDebugMode",
+        "icon": "$(diff)"
       },
       {
-        "command": "infoset.diff",
-        "title": "View infoset diff",
+        "command": "infoset.save",
+        "title": "Save the current infoset",
         "category": "Daffodil Debug",
         "enablement": "inDebugMode"
       }

Reply via email to