Vauxoo / travis2docker

This is a Library to transform travis to docker file
BSD 2-Clause "Simplified" License
13 stars 15 forks source link

Draft: [IMP] t2d: Add support for vscode with devcontainer.json #169

Open antonag32 opened 2 years ago

antonag32 commented 2 years ago

Related to #158

This PR adds supports for devcontainers, a really cool option that integrates with vscode and automatically creates development containers.

If everything goes well, when you open a folder with a .devcontainer.json file vscode automatically gives you the option to reopen in a remote container. With the proposed devcontaner.json this will open a vscode instance with:

More extensions can easily be added, I only use/know of those three for Odoo development.

Odoo source code is also added to extraPaths which basically means you can Ctrl + Click on something like from odoo import models and have a new tab with the source code on it. This also means that function arguments to stuff like search are suggested now based on Odoo's source code.

I am not very familiar with t2d source code so reviews are welcome since I am not sure I am placing the new feature in the correct place.

codecov-commenter commented 2 years ago

Codecov Report

Base: 83.33% // Head: 83.47% // Increases project coverage by +0.14% :tada:

Coverage data is based on head (8203f99) compared to base (45f4894). Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #169 +/- ## ========================================== + Coverage 83.33% 83.47% +0.14% ========================================== Files 7 7 Lines 588 593 +5 Branches 101 102 +1 ========================================== + Hits 490 495 +5 Misses 69 69 Partials 29 29 ``` | [Impacted Files](https://codecov.io/gh/Vauxoo/travis2docker/pull/169?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Vauxoo) | Coverage Δ | | |---|---|---| | [src/travis2docker/travis2docker.py](https://codecov.io/gh/Vauxoo/travis2docker/pull/169/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Vauxoo#diff-c3JjL3RyYXZpczJkb2NrZXIvdHJhdmlzMmRvY2tlci5weQ==) | `86.25% <100.00%> (+0.24%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Vauxoo). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Vauxoo)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.