create-adapter icon indicating copy to clipboard operation
create-adapter copied to clipboard

lanuch.json for debugging with VS Code

Open UncleSamSwiss opened this issue 5 years ago • 2 comments

It would be good to also have the launch.json (see https://github.com/UncleSamSwiss/ioBroker.loxone/blob/master/.vscode/launch.json) generated for VS Code.

I think this is independent of Devcontainer and should be available to everybody using VS Code.

We could also add a "Attach to Adapter" as you can see here, but this is not strictly necessary: https://github.com/UncleSamSwiss/ioBroker.i2c/blob/typescript/.vscode/launch.json

UncleSamSwiss avatar Sep 07 '20 09:09 UncleSamSwiss

Since we're adding editor-specific options (a bunch for VSCode and #570 for WebStorm), I think we need to decide: Let the user choose which editor he has or just create all files regardless?

AlCalzone avatar Sep 08 '20 06:09 AlCalzone

Let the user choose which editor he has or just create all files regardless?

I would vote for creating all editor files regardless. Example: I am currently working with a developer on an ioBroker project who uses Webstorm under Linux, while I am using VS Code under Windows. So for the sake of collaboration, we should add all, which is likely limited to VS Code, Webstorm, and a few others (if any other), and with .gitignore and .npmignore, we can exclude those files accordingly. Perhaps focus on VS Code and Webstorm actually...

Mic-M avatar Nov 11 '20 19:11 Mic-M