Skip to content

Commit

Permalink
Merge pull request #23 from halcyon-tech/feature/tests
Browse files Browse the repository at this point in the history
Unit tests & local file support
  • Loading branch information
worksofliam authored Dec 5, 2021
2 parents 1683542 + 4b64ca9 commit ec2441b
Show file tree
Hide file tree
Showing 19 changed files with 3,310 additions and 3,972 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ Adds functionality to improve writing RPGLE free-format (only `**FREE`), includi

Depends on Code for IBM i due to source code living on the remote system.

## FAQ

1. **Does this only work with free-format?** The content assist and outline view only works with completely free-format (`**FREE`). The column assist is for fixed-format.
2. **My copybook is not opening or prototypes are not coming from my copybook.** Right now, it is an explicit path to your member or streamfile. For example, if you're editing `YOURLIB/QRPGLESRC/HELLOWORLD.rpgle` and your copybook path is `QRPGLEREF,PRTYPE`, then it will assume the library of `YOURLIB`. For streamfiles, it will be relative to your working directory. For local files, it will be your VS Code workspace.
3. **Does this work with local projects?** Yes! But, your local RPGLE must be the IFS style path on your `copy` and `include` directives.

## How to enable

Enable these options in VS Code settings.
Expand All @@ -22,6 +28,14 @@ Enable these options in VS Code settings.
* `vscode-rpgle.rpgleLinterSupportEnabled` - enables linter
* `vscode-rpgle.openLintConfig` to open or create linter file. Creates / opens relative to source that is currently open. Read more below on linting.

## Developing

1. Fork & clone
2. `npm i`
3. Run
* `npm run test`
* Debug 'Run Extension'

# Linter

The linter configuration is held in a JSON document relative to the RPGLE source code that is being worked on.
Expand Down
Loading

0 comments on commit ec2441b

Please sign in to comment.