diff --git a/mcnp-server/lib/gov.lanl.mcnp-1.0.0-SNAPSHOT.jar b/mcnp-server/lib/gov.lanl.mcnp-1.0.0-SNAPSHOT.jar index 88cd2f1..3712ec6 100644 Binary files a/mcnp-server/lib/gov.lanl.mcnp-1.0.0-SNAPSHOT.jar and b/mcnp-server/lib/gov.lanl.mcnp-1.0.0-SNAPSHOT.jar differ diff --git a/mcnp-server/lib/gov.lanl.mcnp.ide-1.0.0-SNAPSHOT.jar b/mcnp-server/lib/gov.lanl.mcnp.ide-1.0.0-SNAPSHOT.jar index 05354df..eb2bad6 100644 Binary files a/mcnp-server/lib/gov.lanl.mcnp.ide-1.0.0-SNAPSHOT.jar and b/mcnp-server/lib/gov.lanl.mcnp.ide-1.0.0-SNAPSHOT.jar differ diff --git a/package.json b/package.json index 2eeea47..c8a0807 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "nucomp-mcnp", "displayName": "MCNP Language Server", "description": "MCNP input validation and editor services. Also supports plot and run scripts.", - "version": "0.0.10", + "version": "0.0.11", "featureFlags": { "usingNewPythonInterpreterPathApi": true, "usingNewPythonInterpreterPathApiV2": true @@ -73,12 +73,12 @@ "menus": { "editor/context": [ { - "when": "!inOutput && config.nucomp-mcnp.showRunCommandInEditorContextMenu", + "when": "!inOutput && config.nucomp-mcnp.showRunCommandInEditorContextMenu && resourceExtname == .mcnp", "command": "nucomp-mcnp.run", "group": "navigation" }, { - "when": "!inOutput && config.nucomp-mcnp.showRunCommandInEditorContextMenu", + "when": "!inOutput && config.nucomp-mcnp.showRunCommandInEditorContextMenu && resourceExtname == .mcnp", "command": "nucomp-mcnp.runPlotCommand", "group": "navigation" }, @@ -90,9 +90,14 @@ ], "editor/title/run": [ { - "when": "config.nucomp-mcnp.showRunIconInEditorTitleMenu", + "when": "config.nucomp-mcnp.showRunIconInEditorTitleMenu && resourceExtname == .mcnp", "command": "nucomp-mcnp.run", "group": "navigation" + }, + { + "when": "config.nucomp-mcnp.showRunIconInEditorTitleMenu && resourceExtname == .mcnp", + "command": "nucomp-mcnp.runPlotCommand", + "group": "navigation" } ], "editor/title": [ @@ -100,21 +105,16 @@ "when": "config.nucomp-mcnp.showStopIconInEditorTitleMenu && nucomp-mcnp.codeRunning", "command": "nucomp-mcnp.stop", "group": "navigation" - }, - { - "when": "config.nucomp-mcnp.showRunIconInEditorTitleMenu", - "command": "nucomp-mcnp.runPlotCommand", - "group": "navigation" } ], "explorer/context": [ { - "when": "!explorerResourceIsFolder && config.nucomp-mcnp.showRunCommandInExplorerContextMenu", + "when": "!explorerResourceIsFolder && config.nucomp-mcnp.showRunCommandInExplorerContextMenu && resourceExtname == .mcnp", "command": "nucomp-mcnp.run", "group": "navigation" }, { - "when": "!explorerResourceIsFolder && config.nucomp-mcnp.showRunCommandInExplorerContextMenu", + "when": "!explorerResourceIsFolder && config.nucomp-mcnp.showRunCommandInExplorerContextMenu && resourceExtname == .mcnp", "command": "nucomp-mcnp.runPlotCommand", "group": "navigation" }