Sarrus1 / sourcepawn-studio

VSCode extension for SourcePawn scripting
https://sarrus1.github.io/sourcepawn-studio/
MIT License
143 stars 22 forks source link

Extension giving sp error for a function call but no info is given about the function #308

Closed flleeppyy closed 1 year ago

flleeppyy commented 1 year ago

Basic informations

Further Information

To Reproduce

  1. Clone https://github.com/Phil25/RTD/tree/master
  2. Set up .vscode/settings with the main path set to scripting/rtd.sp
  3. Go to a perk in scripting/rtd/perks that uses a cache function from scripting/rtd/cache.sp (such as firework.sp)
  4. Remove arguments from the function call, save and wait for the language server to update
  5. You will see an error cause there's no arguments provided, but if you were trying to work on this project and you needed to use one of the cache functions, it won't give you the definition, or arguments.

image image

Code to reproduce the behaviour

https://github.com/Phil25/RTD/tree/master also add these files to scripting/include

Expected behaviour

Show me the definition and let me Ctrl+click on the function to go to it.

Error messages

none

flleeppyy commented 1 year ago

Also the perk variable doesn't have types either but it's technically available in the perk call function