caderek / aocrunner

Advent of Code runner
ISC License
163 stars 23 forks source link

feat: Add VS Code `launch.json` config #20

Open teofanis opened 1 year ago

teofanis commented 1 year ago

This PR address Issue https://github.com/caderek/aocrunner/issues/18

Here's how it looks during setup : image

If no is selected, there will be no changes, if yes is selected the following will be created within the user's aoc directory : image image

I decided to open the PR, so that we can comment on something, rather than just imagining it. Configuration and wording is not final, so yes - I await your comments.

teofanis commented 1 year ago

P.S - Just noticed I failed to mention VS Code in the question :D, anyways the question should be rephrased definitely

terryaney commented 9 months ago

Does this support debugging the daily index.ts files? I added following to my launch config just to be able to hit f5 on currently open file. Battled a few issues, but seems to be working pretty solidly now:

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Launch Program",
            "program": "${file}",
            "preLaunchTask": "tsc: build - tsconfig.json"
        }
    ]
}
teofanis commented 9 months ago

I don't remember as I made the pr last year xD. I believe you could run with debug on in Vs code needs to be tested, I can try and pull it to test in anyway the snippet you provided lgtm also.