codefori / vscode-ibmi

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

Source code searching #2086

Closed sbcguard closed 1 month ago

sbcguard commented 1 month ago

Not really an issue but a question/idea. Currently in RDi, we use iSphere to search source code. Is there something similar to that in Code for i, or plans for something like that. I work in a lot of older COBOL programs and the like, and the source code search is often valuable in finding where a program is called from and various other quick search needs. Thanks, AJ


⚠️ REMOVE THIS LINE AND ANY SENSITIVE INFORMATION BELOW! ⚠️

Context Version
Code for IBM i version 2.10.4
Visual Studio Code version 1.89.1
Operating System win32_x64
Active extensions ``` COBOL (cobol): 10.5.29 Code Runner (code-runner): 0.12.2 Code Spell Checker (code-spell-checker): 3.0.1 Code for IBM i Walkthroughs (vscode-ibmi-walkthroughs): 0.5.0 CodeTour (codetour): 0.0.59 Db2 for IBM i (vscode-db2i): 1.0.0 ES7+ React/Redux/React-Native snippets (es7-react-js-snippets): 4.4.3 ESLint (vscode-eslint): 2.4.4 EditorConfig for VS Code (EditorConfig): 0.16.4 Emmet (emmet): 1.0.0 Error Lens (errorlens): 3.18.0 Git (git): 1.0.0 Git Base (git-base): 1.0.0 Git Project Manager (git-project-manager): 1.8.2 GitHub (github): 0.0.1 GitHub Authentication (github-authentication): 0.0.2 GitLens — Git supercharged (gitlens): 15.0.4 IBM i Debug (ibmidebug): 1.0.0 JSON Language Features (json-language-features): 1.0.0 Live Server (LiveServer): 5.7.9 Live Share (vsliveshare): 1.0.5918 Material Icon Theme (material-icon-theme): 5.3.0 Merge Conflict (merge-conflict): 1.0.0 Microsoft Account (microsoft-authentication): 0.0.1 Node Debug Auto-attach (debug-auto-launch): 1.0.0 Prettier - Code formatter (prettier-vscode): 10.4.0 TODO Highlight (vscode-todo-highlight): 1.0.5 Tabnine AI (tabnine-vscode): 3.104.0 TypeScript and JavaScript Language Features (typescript-language-features): 1.0.0 ```

Remote system |Setting|Value| |-|-| |IBM i OS|n/a| |Tech Refresh|n/a| |CCSID Origin|65535| |Runtime CCSID|65535| |Default CCSID|37| |SQL|Enabled |Source dates|Disabled ### Enabled features |/QOpenSys/pkgs/bin|/usr/bin|/QSYS.lib/ILEDITOR.lib||/QSYS.LIB|/QIBM/ProdData/IBMiDebugService/bin| |-|-|-|-|-|-| |bash|attr|GETNEWLIBL.PGM|ILEDITOR.GETMBRINFO|QZDFMDB2.PGM|startDebugService.sh| |git|iconv||||| |grep|setccsid||||| |ls|||||| |md5sum|||||| |sort|||||| |stat|||||| |tar||||||
Shell env ```bash ```
Variants ```json { "american": "#@$", "local": "#@$" } ```
Errors ```json [ { "command": "/QOpenSys/usr/bin/qsh", "code": 1, "stderr": "CPF2111: Library ILEDITOR already exists.", "cwd": "/home/ITAJ" }, { "command": "export BUILDLIB=\"BC001\" && export CURLIB=\"BC001\" && export USERNAME=\"ITAJ\" && export HOST=\"BOONEDEV\" && export HOME=\"/home/ITAJ\" && export WORKDIR=\"/home/ITAJ\" && export LIBLS=\"TAATOOL QGPL QGDDM QTEMP RVILIB RVICUST MMAIL BC001 ITA05\" && env", "code": 1, "stderr": "bsh: BUILDLIB=BC001: is not an identifier", "cwd": "/home/ITAJ" }, { "command": "export BUILDLIB=\"BC001\" && export CURLIB=\"BC001\" && export USERNAME=\"ITAJ\" && export HOST=\"BOONEDEV\" && export HOME=\"/home/ITAJ\" && export WORKDIR=\"/home/ITAJ\" && export LIBLS=\"TAATOOL QGPL QGDDM QTEMP RVILIB RVICUST MMAIL BC001 ITA05\" && env", "code": 1, "stderr": "bsh: BUILDLIB=BC001: is not an identifier", "cwd": "/home/ITAJ" } ] ```
sebjulliand commented 1 month ago

Could this be what you're looking for? image

sbcguard commented 1 month ago

Eh, not exactly, with the RDi iSphere source file search you can specify the LIB you want to search in, or search all libs. That will only look for references within that source member.

sbcguard commented 1 month ago

For example,

image image

This will search all libraries and all source members for a value