genius257 / vscode-autoit

AutoIt language extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=genius257.autoit
MIT License
4 stars 3 forks source link

au3 signature helper support for builtin functions #9

Closed genius257 closed 7 months ago

genius257 commented 1 year ago

Currently signature help is not available, caused by server logic expecting to have AST for the built-in function declarations.

The ideal solution, is an internal always loaded script instance that contains all the built-in functions. This will currently make it impossible to show function description and documentation. Therefore this feature will wait for #41 to finish first, so that existing function documentation shown can be transferred to the function Docblock.

genius257 commented 7 months ago

Implemented mostly via: 0bcc213f90dca341c5e7ee19919341220d1740f7 818d2d9601b983f4733bbc7d669b3720c6fdce6d e0ed834af25a519d2e35626ae8b0395bcad1d67e 85a5102718f6b918dd6bbfe0318d1ef4d2342f58 84579e97c612446823f963e844eb73fb07629dc8 0f4642eb5db247e71602c7913fe9874cf6871456 b6cba28c0dc984903e0bb548f4abd2801123f2c0 56a87208428656eb0c72c0435697a9066a2e659b 6d84d0492417cab7d465daa37eb4a7454c3e6c1c and b7bb645fbad486332d66926988345f33612c2569

genius257 commented 7 months ago

It should be noted that i added all built-in functions available in the latest documentation from the AutoIt3 online documentation. This means that even though the parser target version shows as 3.3.14.5 Map functions will be suggested. I have made a draft item in the project to fix this later, by splitting the functions into multiple files, to allow dynamic loading of available built-in functions for the chosen version.