codefori / vscode-ibmi

🌍 IBM i development extension for VS Code
https://codefori.github.io/docs/#/
MIT License
288 stars 95 forks source link

The default actions `Create Service Program` and `Create Program` should not be enabled for `GLOBAL` i.e. all file extensions #1961

Open edmundreinhardt opened 8 months ago

edmundreinhardt commented 8 months ago

Describe the bug After launching actions setup, the default actions for PGM and CRTSRVPGM are created as global and are therefore available for all source files. This leads to running these actions on the wrong source.

To Reproduce I just tested the action IBM i: Launch Actions Setup image

and the actions.json entry created

  {
    "extensions": [
      "GLOBAL"
    ],
    "name": "Create Service Program (CRTSRVPGM EXPORT(*ALL))",
    "command": "CRTSRVPGM SRVPGM(&CURLIB/&NAME) EXPORT(*ALL) BNDSRVPGM(*NONE) BNDDIR(*NONE) ACTGRP(*CALLER)",
    "environment": "ile"
  },

Here is the screen recording of the confusing result of this

https://github.com/IBM/vscode-ibmi-projectexplorer/assets/59372176/cbc4d226-3df8-42f0-9751-65c1e3bc5742

Expected behavior These actions should not appear for inappropriate file extensions

Environment:

The issue is not unique to these versions

worksofliam commented 8 months ago

What are the recommended extensions you suggest?

edmundreinhardt commented 7 months ago

The file extensions which are appropriate for this