codefori / codefori/vscode-ibmi

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

Open
#1,961 2 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
TypeScript
Stars
418
Forks
160
Avg merge
4d 19h
Merged PRs (30d)
12

Description

**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](https://github.com/IBM/vscode-ibmi-projectexplorer/assets/11184579/e91244f9-0c8e-4d1c-9e33-ace582ac6a69)

and the actions.json entry created
```json
{
"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:**
- Extension version 2.8.0
- IBM i OS version 7.4

The issue is not unique to these versions

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.