zero-plusplus / vscode-autohotkey-debug

https://marketplace.visualstudio.com/items?itemName=zero-plusplus.vscode-autohotkey-debug
53 stars 4 forks source link

`extend` in `launch.json` doesn't carry `useAnnounce` #233

Closed anonymous1184 closed 2 years ago

anonymous1184 commented 2 years ago

Debug directives on includes need useLoadedScripts and permanently debug like that is a bit slower, so I have two profiles one quick debugging and one for a more in depth debug (through extend). I noticed the extend option is not carried to the extended profile.

Here's a simple testing pair:

{
    "name": "Test",
    "request": "launch",
    "type": "autohotkey",
    "useAnnounce": "error",
    "useDebugDirective": true,
    "useLoadedScripts": true
},
{
    "extends": "Test",
    "name": "Test (deep)",
    "useDebugDirective": true,
    "useLoadedScripts": { "scanImplicitLibrary": true },
    "usePerfTips": { "format":"{{elapsedTime_ms}}ms" }
}

Also on a quick side note (I don't know if this is the extension or VSCode) the extended profile works fine without request and type but the launch.json validation marks their absence as warning. And that's totally not worth of creating a new issue because it might not be the extension after all.

zero-plusplus commented 2 years ago

I tried but could not confirm the issue. In my environment, useAnnounce was successfully extended to Test (deep).


Since vscode completes attributes using request and type, it is recommended to define them.

anonymous1184 commented 2 years ago

As soon as I removed the folder of the problematic project from data\user-data\user\workspaceStorage it works again, so is a bug on VSCodium and not the extension. Thanks a lot for checking this out!

zero-plusplus commented 2 years ago

OK.

This extension is not guaranteed to work with VSCodium and may cause other issues.

Please report back to us then as well. This will be low priority, but will be fixed if possible.