codefori / vscode-ibmi

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

Autocomplete procedure params name with "$" missing #2321

Closed youhou85 closed 5 days ago

youhou85 commented 5 days ago

We are using dollar-sign "$" to indicate local variables, but when typing in procedures name, the autocomplete doesnt fill the parameters name automatically.

Example :

**free

ctl-opt nomain;

///
// fake
// Only for testing
///
dcl-proc fake;

  test_proc_params_with_dollar_signs(:); // this will autocomplete like this
  test_proc_params_without_dollar_signs(first_parm:second_parm);
  return;

end-proc;

///
// test_proc_params_with_dollar_signs
// Only for testing
///
dcl-proc test_proc_params_with_dollar_signs;
  dcl-pi *n char(10);
    $first_parm char(1) value;
    $second_parm char(1) value;
  end-pi;

  return '1:' + $first_parm;

end-proc;

///
// test_proc_params_without_dollar_signs
// Only for testing
///
dcl-proc test_proc_params_without_dollar_signs;
  dcl-pi *n char(10);
    first_parm char(1) value;
    second_parm char(1) value;
  end-pi;

  return '1:' + first_parm;

end-proc;

Context Version
Code for IBM i version 2.13.5
Visual Studio Code version 1.95.0
Operating System win32_x64
Active extensions ``` COBOL (cobol): 24.10.26 Code for IBM i Walkthroughs (vscode-ibmi-walkthroughs): 0.5.0 Configuration Editing (configuration-editing): 1.0.0 Continue - Codestral, Claude, and more (continue): 0.8.55 Db2 for IBM i (vscode-db2i): 1.6.1 Emmet (emmet): 1.0.0 Error Lens (errorlens): 3.20.0 Extension Authoring (extension-editing): 1.0.0 Git (git): 1.0.0 Git Base (git-base): 1.0.0 GitHub (github): 0.0.1 IBM i Debug (ibmidebug): 2.0.1 JSON Language Features (json-language-features): 1.0.0 Merge Conflict (merge-conflict): 1.0.0 NPM support for VS Code (npm): 1.0.1 Node Debug Auto-attach (debug-auto-launch): 1.0.0 RPGLE (vscode-rpgle): 0.26.12 Source Orbit (vscode-sourceorbit): 1.0.2 TODO Highlight (vscode-todo-highlight): 1.0.5 TypeScript and JavaScript Language Features (typescript-language-features): 1.0.0 ```

Variants ```json { "american": "#@$", "local": "#@$" } ```
worksofliam commented 5 days ago

Same issue as https://github.com/codefori/vscode-rpgle/issues/213 do I will close this one.