VSCode gives Node.js "open EISDIR" error when opening file from REPL

I’ve managed to sidestep this issue in the meantime by adding the following to my startup.jl:

# workaround for editor interaction issue https://github.com/JuliaLang/julia/issues/53321
atreplinit() do _
    InteractiveUtils.define_editor(["code", "code-insiders"]; wait=true) do cmd, path, line, column
        `$cmd -g $path:$line:$column`
    end
end

This doesn’t seem like the proper fix, but it’s working for me for now while the above-linked issue remains open.