mark-wiemer-org / ahkpp

AutoHotkey Plus Plus (AHK++) - AutoHotkey v1 and v2 support for VS Code
https://marketplace.visualstudio.com/items?itemName=mark-wiemer.vscode-autohotkey-plus-plus
Other
152 stars 10 forks source link

How to get intelisense suggestions for functions stored in '.\Documents\lib' ? #395

Open GaryAtlan82 opened 1 year ago

GaryAtlan82 commented 1 year ago

First of all thank you for the efforts in writing this extension. It really makes programming a pleasure.

Ever since I started to use the extension. I have been getting bugged by this, and it has only gotten worse, now that I have quite a few functions in the \Lib with tons of parameters I cant remember.

To be clear I am talking about this feature:

I have noticed that if I have a file that is stored in the \Lib folder open in another tab/group it will sometimes be suggested in the active document but not always.

I would like all the functions in files stored in \Lib folder to be suggested to me via Intelisense.

I dont mind parsing many files. I have a capable PC and even then I am fine with waiting, I just really need to know what parameter is what, default values etc.

Also is there a setting to define a set of directories to scan for files to be parsed, for use in Intelisense? I have a few files that are not placed in conventional AHK directories and would like to reference them as I work.

Latest AutHotkey V1
Latest AHK++ Extension Update
Code Version: 1.78.1 
Code Electron: 22.5.1
Code Chromium: 108.0.5359.215
Code Node.js: 16.17.1
Windows 11

Any help would be greatly appreciated!

mark-wiemer commented 1 year ago

This is a great ask @GaryAtlan82 and would definitely provide a lot of value to folks. I can say the extension parses all files opened or saved in the VS Code workspace for use in IntelliSense/autocomplete, so you should have some luck for now by just manually opening those files when you'd like to reference them.

Adding a setting for additional libraries to parse sounds like a great idea, I'll see what I can do :)

GaryAtlan82 commented 1 year ago

Wondefull. I look forward to it. I am sure it will be a great addition to this extension.