Closed oseam87 closed 1 year ago
Hi,
Missing parentheses in package.json menus - editor/context
?
{
"command": "extension.userbuild",
"when": "!zopeneditor.isVSCodeWeb && config.zopeneditor.userbuild.enabled && resourceLangId == cobol || resourceLangId == pl1 || resourceLangId == hlasm",
"group": "zopeneditor@2"
},
{
"command": "extension.setup",
"when": "!zopeneditor.isVSCodeWeb && config.zopeneditor.userbuild.enabled && resourceLangId == cobol || resourceLangId == pl1 || resourceLangId == hlasm",
"group": "zopeneditor@1"
},
{
"command": "extension.full-userbuild",
"when": "!zopeneditor.isVSCodeWeb && config.zopeneditor.userbuild.enabled && resourceLangId == cobol || resourceLangId == pl1 || resourceLangId == hlasm",
"group": "zopeneditor@3"
}
Should be:
{
"command": "extension.userbuild",
"when": "!zopeneditor.isVSCodeWeb && config.zopeneditor.userbuild.enabled && (resourceLangId == cobol || resourceLangId == pl1 || resourceLangId == hlasm)",
"group": "zopeneditor@2"
},
{
"command": "extension.setup",
"when": "!zopeneditor.isVSCodeWeb && config.zopeneditor.userbuild.enabled && (resourceLangId == cobol || resourceLangId == pl1 || resourceLangId == hlasm)",
"group": "zopeneditor@1"
},
{
"command": "extension.full-userbuild",
"when": "!zopeneditor.isVSCodeWeb && config.zopeneditor.userbuild.enabled && (resourceLangId == cobol || resourceLangId == pl1 || resourceLangId == hlasm)",
"group": "zopeneditor@3"
}
Same in commandPalette
.
Fixed in Z Open Editor 3.2.0.
Development environment used
Problem Description
These items shouldn't be visible in the right-click context menu when userbuild is disabled:
"Run IBM User Build" "Run IBM User Build with full upload" "Run setup for IBM User Build"
There is probably a bug in the when clause of the menus.