Hashlink debugger in VS Code, asset libraries not loading

I cannot get swf asset libraries to load when I run the debugger in VS Code.

I’m just trying to run the NyanCat sample.

<?xml version="1.0" encoding="utf-8"?>
<project>
	
	<meta title="Nyan Cat" package="org.openfl.samples.nyancat" version="1.0.0" company="OpenFL" />
	<app main="Main" path="Export" file="NyanCat" />
	
	<window width="400" height="400" fps="30" />
	
	<source path="Source" />
	
	<haxelib name="openfl" />
	
	<library path="Assets/library.swf" preload="true" />
	
</project>

Using Hashlink Debugger in VSCode with this configuration:

{
    "name": "HashLink (launch)",
    "request": "launch",
    "type": "hl",
    "preLaunchTask": "lime: build hl -debug",
    "cwd": "${workspaceFolder}/Export/hl/bin",
    "program": "${workspaceFolder}/Export/hl/obj/ApplicationMain.hl",
}

It runs but I get a runtime error:

Uncaught exception: [lime.utils.Preloader] ERROR: There is no asset library with an ID of "library"

If I try a default config ("cwd": "${workspaceFolder}" & no "program") then it complains about missing lime.hdll

The ‘haxelib swf’ library was not introduced in your project configuration file!

Still can’t get Hashlink to load with any assets.
If I don’t use a swf library and just plain old assets, then it fails too.
It outputs:

Uncaught exception: [lime.utils.Preloader] ERROR: There is no asset library with an ID of “default”

So it’s not managing to detect any assets or libraries when it runs in Hashlink debugger.

But it will run if I just use:
openfl test hl or if I run the generated exe wrapper, haven’t figured out a way to connect the debugger with either of these commands though.