vscode-rpgle
vscode-rpgle copied to clipboard
Show SQL cursors in outline view
Changes
Show SQL cursors in outline view.
I'm not sure about the icon.
Checklist
- [X] have tested my change
- [X] updated relevant documentation
- [X] Remove any/all
console.log
s I added - [X] eslint is not complaining
- [X] have added myself to the contributors' list in the README
- [X] for feature PRs: PR only includes one feature enhancement.
Sorry, after more tests, I have some bug with fixed format.
@sebCIL please also write some test cases for this feature.
Thanks!
@sebCIL please also write some test cases for this feature.
Thanks!
Done.
@sebCIL When running these tests, I am getting an error from a test:
vscode-rpgle barry$ npm run test
> [email protected] test
> tsx tests
Running 157 tests:
/Users/barry/Repos/vscode-rpgle/tests/suite/linter.js:2429
assert.strictEqual(errors.length, 1);
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
3 !== 1
at null.exports.linter34 (/Users/barry/Repos/vscode-rpgle/tests/suite/linter.js:2429:10)
at null.run (/Users/barry/Repos/vscode-rpgle/tests/index.js:17:5) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 3,
expected: 1,
operator: 'strictEqual'
}
Ok, I fixed it.
@chrjorgensen @sebjulliand Any chance I can get your opinion on this PR? Do you think showing the cursors is standard and would be useful to the user?
@worksofliam I have not seen cursors in an outline view before - it's not in RDi. But to me it would be a nice addition - helping in locating the definition of a SQL cursor.
@sebCIL Review incoming today. Thank you!
Sorry, I didn't test my test !
@sebCIL There is another big PR I am needing to merge ASAP. I suspect it will have a large impact on this PR. Just thought I'd give you a heads up.