Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDE support: vscode #23

Open
xenoterracide opened this issue Apr 18, 2020 · 6 comments
Open

IDE support: vscode #23

xenoterracide opened this issue Apr 18, 2020 · 6 comments

Comments

@xenoterracide
Copy link

xenoterracide commented Apr 18, 2020

so the Au CLI, would ask you about IDE support. Would be cool if this were added back and added recommended extensions (e.g.), the ignore #22 and more importantly a launch.json, I still have not gotten debugging working with the webpack/typescript setup.

P.S. any chance you know why/can help with that?

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "chrome",
      "request": "attach",
      "name": "Attach to Chrome",
      "port": 9222,
      "webRoot": "${workspaceFolder}/src"
    },
    {
      "name": "Chrome Debugger",
      "type": "chrome",
      "request": "launch",
      "url": "http://localhost:9000",
      "webRoot": "${workspaceRoot}/src",
      "userDataDir": "${workspaceRoot}/.chrome",
      "sourceMapPathOverrides": {
        "../src/*": "${webRoot}/*"
      }
    }
  ]
}
@3cp
Copy link
Member

3cp commented Apr 18, 2020

Not right now, we want to keep this repo as small as possible before Aurelia 2 Beta (no timeline).
Because of possible breaking change, we don't want to bring so many features in before Aurelia 2 settles.

Same goes to #22.

@xenoterracide
Copy link
Author

any chance you can help with that launch.json anyways? :P it's currently my bane... :'(

@3cp
Copy link
Member

3cp commented Apr 18, 2020

Sent a PR in.

If the chrome debugger only works with webpack, make it conditional.

.vscode/launch.json__if_webpack

@3cp
Copy link
Member

3cp commented Apr 18, 2020

Remember you have to maintain it :-)

@xenoterracide
Copy link
Author

xenoterracide commented Apr 18, 2020

I doubt it only works with webpack... I'd have to try it though to see if it's different with gulp, however... I just finally got it working! VICTORY!

{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Chrome Debugger",
      "type": "chrome",
      "request": "launch",
      "url": "http://localhost:9000",
      "webRoot": "${workspaceRoot}",
      "userDataDir": "${workspaceRoot}/.chrome"
    }
  ]
}

as far as a PR on this, I'll think about it, I think I need to use vscode for like, another couple of months before I commit, I've primarily been an intellij user for the last few years, and not doing frontend dev at all.

@3cp
Copy link
Member

3cp commented Apr 18, 2020

No worry, not urgent.
aurelia-cli got launch.json for both setup. I just need time to adjust that to work with dumber bundler gulp setup. Maybe we will add that before you do, as few other au2 core members use vscode too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants