loganch / AutoIt-VSCode

AutoIt Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=Damien.autoit
MIT License
74 stars 25 forks source link

Shortcut Open Include file does not work on VS Code 1.76.1 #171

Closed GrandStrateguerre closed 8 months ago

GrandStrateguerre commented 1 year ago

Hi,

VS Code : image

F5 works good : image

When I press ALT + I on line : image I get this error : image

Best regards

Danp2 commented 1 year ago

@GrandStrateguerre It should work if you add the target directory to the settings.json file. For example --

    "autoit.includePaths": [
      "C:\\Program Files (x86)\\AutoIt3\\Include",
          "C:\\Users\\xxxxx\\Dropbox\\Autoit UDFs"
    ],

I can't recall if it was originally designed to work without this modification.

GrandStrateguerre commented 1 year ago

Hello Danp2,

By default the setting include paths is empty. I set the path "C:\Program Files (x86)\AutoIt3\Include" in the config , and it works, Thanks.

Should be added by default, I think ?

For others to do the settings : image image image

Best regards

Danp2 commented 1 year ago

@GrandStrateguerre This path was originally included by default. This appears to have changed in https://github.com/loganch/AutoIt-VSCode/commit/5903d1165511d9e86f86d950541b7ae823a55c43. Maybe @loganch or @vanowm can provide some input about why this was changed.