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

Add instructions for using devcontainer from WSL #1949

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

schelv
Copy link
Contributor

@schelv schelv commented Oct 15, 2023

Proposed change

Add instructions for using devcontainer from WSL.
This worked a lot better on my machine.

Type of change

  • Document existing features within Home Assistant
  • Document new or changing features which there is an existing pull request elsewhere
  • Spelling or grammatical corrections, or rewording for improved clarity
  • Changes to the backend of this documentation
  • Removed stale or deprecated documentation

Additional information

  • This PR fixes or closes issue: fixes #
  • Link to relevant existing code or pull request:

Summary by CodeRabbit

  • Documentation
    • Added a new section for setting up a development environment using Windows Subsystem for Linux (WSL).
    • Included detailed steps for configuring Docker, Visual Studio Code, and WSL.
    • Provided commands for opening and verifying the development environment in Visual Studio Code.
    • Added instructions for accessing the Home Assistant setup screen in a web browser.

Copy link
Contributor

@mib1185 mib1185 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hin @schelv

first many thanks for bring this in, I think there are many people out there using WSL2 + VScode + Dev-Container 👍
I've some comments left

docs/development_environment.mdx Outdated Show resolved Hide resolved
docs/development_environment.mdx Outdated Show resolved Hide resolved
docs/development_environment.mdx Outdated Show resolved Hide resolved

**Prerequisites**

- [Docker](https://docs.docker.com/get-docker/)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since WSL2 supports systemd now, we should point the user both options for docker - Docker Desktop and Docker-Engine (i prefer the installing the docker engine over docker desktop, since docker desktop comes with some unneeded overhead)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't consider that option yet.
So far "Docker" in these instructions has meant "Docker desktop installed on windows".

I'm not sure if mentioning docker-engine here is helpful for most people.
There is already a lot of information and I'm afraid adding more options makes it even more overwhelming.

docs/development_environment.mdx Outdated Show resolved Hide resolved
docs/development_environment.mdx Outdated Show resolved Hide resolved
@home-assistant home-assistant bot marked this pull request as draft June 21, 2024 16:47
@home-assistant
Copy link

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@mib1185
Copy link
Contributor

mib1185 commented Jun 21, 2024

schelv and others added 6 commits June 22, 2024 21:09
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
feedback from @mib1885
link to instructions that help with verifying the WSL mode.
@schelv schelv requested a review from mib1185 June 22, 2024 21:01
@schelv
Copy link
Contributor Author

schelv commented Jun 22, 2024

Hin @schelv

first many thanks for bring this in, I think there are many people out there using WSL2 + VScode + Dev-Container 👍 I've some comments left

Thank you for the feedback!
I've made some changes.

@schelv schelv marked this pull request as ready for review June 22, 2024 21:03
Copy link
Contributor

coderabbitai bot commented Jun 22, 2024

Walkthrough

Walkthrough

The changes enhance the setup guide for a Home Assistant development environment by detailing how to use a devcontainer within a WSL (Windows Subsystem for Linux) distribution like Ubuntu. The updated documentation includes prerequisites, configuration steps for Docker and WSL, and instructions for integrating Visual Studio Code for seamless Home Assistant frontend development.

Changes

Files Change Summary
docs/development_environment.mdx Added a section for setting up a development environment using WSL, Docker, and Visual Studio Code. Included detailed steps for ensuring proper configuration and setup.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant WSL
    participant Docker
    participant VSCode
    participant HomeAssistantRepo

    User->>WSL: Set up WSL in Ubuntu
    User->>Docker: Enable Docker-WSL integration
    User->>HomeAssistantRepo: Fork repository
    HomeAssistantRepo->>WSL: Clone forked repository

    WSL->>VSCode: Open in WSL terminal
    VSCode->>WSL: Reopen project in devcontainer

    User->>VSCode: Run setup tasks and check for errors
    VSCode->>HomeAssistantRepo: Fetch and display logs

    User->>Browser: Access Home Assistant setup screen
    Browser->>HomeAssistantRepo: Confirm successful setup
Loading

Recent review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE

Commits

Files that changed from the base of the PR and between dc72abb and 883d723.

Files selected for processing (1)
  • docs/development_environment.mdx (1 hunks)
Additional context used
Path-based instructions (1)
docs/development_environment.mdx (4)

Pattern */**(html|markdown|md): - For instructional content in documentation, use a direct and authoritative tone. Avoid expressions of politeness such as 'may' or 'please', and ensure the goal of the instruction is fronted.

  • Apply the Microsoft Style Guide to ensure documentation maintains clarity and conciseness.
  • In step-by-step instructions, front the location phrase in the instructional sentence.
  • In step-by-step instructions, front the 'goal' in the instructional sentence.
  • In step-by-step instructions, if in doubt what to front, front the 'goal' before the location phrase in the instructional sentence.
  • do not hyphenate terms like 'top-right' or 'bottom-left' with 'corner'

Pattern */**(html|markdown|md): - Use bold to mark UI strings.

  • If "" are used to mark UI strings, replace them by bold.

Pattern */**(html|markdown|md): - Be brief in your replies and don't add fluff like "thank you for..." and "Please let me know if"


Pattern */**(html|markdown|md): - Use sentence-style capitalization also in headings.

LanguageTool
docs/development_environment.mdx

[misspelling] ~20-~20: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ...## Developing with Visual Studio Code + devcontainer The easiest way to get started with de...


[misspelling] ~22-~22: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ...pment is to use Visual Studio Code with devcontainers. This approach will create a preconfigu...


[misspelling] ~22-~22: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ...sistant repositories. [Learn more about devcontainers.](https://code.visualstudio.com/docs/de...


[grammar] ~25-~25: The operating system from Apple is written “macOS”. (MAC_OS)
Context: ... hardware if you are using a Windows or MacOS computer for development. ::: **Prereq...


[misspelling] ~31-~31: If the term is a proper noun, use initial capitals. (EN_SPECIFIC_CASE)
Context: ...https://docs.docker.com/get-docker/) - Visual Studio code - [Git...


[misspelling] ~43-~43: Only proper nouns start with an uppercase character (there are exceptions for headlines). (EN_UPPER_CASE_NGRAM)
Context: ...palette in Visual Studio Code - Shift+Command+P(Mac) / Ctrl+Shift+P (Windows...


[misspelling] ~52-~52: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ...the top of the sidebar. ### Tasks The devcontainer comes with some useful tasks to help yo...


[misspelling] ~52-~52: Only proper nouns start with an uppercase character (there are exceptions for headlines). (EN_UPPER_CASE_NGRAM)
Context: ...pening the command palette with Shift+Command+P(Mac) / Ctrl+Shift+P (Windows...


[misspelling] ~62-~62: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ...ant.io/integrations/debugpy/). ### Use devcontainer from Windows Subsystem for Linux (WSL) ...


[misspelling] ~64-~64: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ... Linux (WSL) It is possible to start a devcontainer from a Windows Subsystem for Linux (WSL...


[misspelling] ~66-~66: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ...buntu and [mount its directory into the devcontainer](https://developers.home-assistant.io/d...


[misspelling] ~71-~71: If the term is a proper noun, use initial capitals. (EN_SPECIFIC_CASE)
Context: ...https://docs.docker.com/get-docker/) - Visual Studio code - WSL ...


[misspelling] ~76-~76: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ...ur WSL distro, and clone your fork with git clone <url from your fork>. 4. Use the command `c...


[uncategorized] ~77-~77: Consider adding a hyphen. (TOP_LEFT_CORNER)
Context: ...re/to open Visual Studio Code. In the bottom left corner you will seeWSL: <name of the ...


[uncategorized] ~77-~77: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ... Visual Studio Code. In the bottom left corner you will see `WSL: <name of the distrib...


[uncategorized] ~78-~78: Consider adding a hyphen. (TOP_LEFT_CORNER)
Context: ...he "Reopen in Container" message in the bottom right corner or press the f1 key and select `...


[uncategorized] ~78-~78: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...ontainer. After Visual Studio Code has reopened you should see Dev Container: Home Ass...


[uncategorized] ~78-~78: Consider adding a hyphen. (TOP_LEFT_CORNER)
Context: ...v Container: Home Assistant Dev` in the bottom left corner. 6. You can verify that your dev...


[misspelling] ~80-~80: Only proper nouns start with an uppercase character (there are exceptions for headlines). (EN_UPPER_CASE_NGRAM)
Context: ...palette in Visual Studio Code - Shift+Command+P(Mac) / Ctrl+Shift+P (Windows...


[misspelling] ~87-~87: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ... instructions if you do not want to use devcontainers._ It is also possible to set up a more...


[uncategorized] ~113-~113: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...he Linux instructions. When working in WSL make sure to keep all code/repos in the...


[misspelling] ~116-~116: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ...nstead, within a WSL terminal, find the inet address of the eth0 adaptor by runni...


[uncategorized] ~116-~116: Do not mix variants of the same word (‘adaptor’ and ‘adapter’) within a single text. (EN_WORD_COHERENCY)
Context: ..., find the inet address of the eth0 adaptor by running ip addr show eth0. Then us...


[misspelling] ~116-~116: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ...ddress of the eth0 adaptor by running ip addr show eth0. Then use this address,...


[misspelling] ~116-~116: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ... the development instance, i.e. if your inet is listed as 172.20.37.6/20, use [ht...


[misspelling] ~132-~132: The verb ‘set up’ is spelled as two words. The noun ‘setup’ is spelled as one. (SETUP_VERB)
Context: .../core) and click Fork. Once forked, setup your local copy of the source using the...


[style] ~146-~146: ‘necessary requirements’ might be wordy. Consider a shorter alternative. (EN_WORDINESS_PREMIUM_NECESSARY_REQUIREMENTS)
Context: ...e a virtual environment and install all necessary requirements. You're now set! Each time you start a...


[typographical] ~153-~153: Consider adding a comma here. (FOR_THAT_COMMA)
Context: ... shell source venv/bin/activate After that you can run Home Assistant like this: ...

Additional comments not posted (2)
docs/development_environment.mdx (2)

62-84: Add detailed instructions for using devcontainer with WSL.

The new section provides a comprehensive guide for setting up a devcontainer using WSL, which is beneficial for users on Windows platforms. The instructions are clear and well-structured, enhancing the documentation's usability.

Tools
LanguageTool

[misspelling] ~62-~62: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ...ant.io/integrations/debugpy/). ### Use devcontainer from Windows Subsystem for Linux (WSL) ...


[misspelling] ~64-~64: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ... Linux (WSL) It is possible to start a devcontainer from a Windows Subsystem for Linux (WSL...


[misspelling] ~66-~66: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ...buntu and [mount its directory into the devcontainer](https://developers.home-assistant.io/d...


[misspelling] ~71-~71: If the term is a proper noun, use initial capitals. (EN_SPECIFIC_CASE)
Context: ...https://docs.docker.com/get-docker/) - Visual Studio code - WSL ...


[misspelling] ~76-~76: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ...ur WSL distro, and clone your fork with git clone <url from your fork>. 4. Use the command `c...


[uncategorized] ~77-~77: Consider adding a hyphen. (TOP_LEFT_CORNER)
Context: ...re/to open Visual Studio Code. In the bottom left corner you will seeWSL: <name of the ...


[uncategorized] ~77-~77: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ... Visual Studio Code. In the bottom left corner you will see `WSL: <name of the distrib...


[uncategorized] ~78-~78: Consider adding a hyphen. (TOP_LEFT_CORNER)
Context: ...he "Reopen in Container" message in the bottom right corner or press the f1 key and select `...


[uncategorized] ~78-~78: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...ontainer. After Visual Studio Code has reopened you should see Dev Container: Home Ass...


[uncategorized] ~78-~78: Consider adding a hyphen. (TOP_LEFT_CORNER)
Context: ...v Container: Home Assistant Dev` in the bottom left corner. 6. You can verify that your dev...


[misspelling] ~80-~80: Only proper nouns start with an uppercase character (there are exceptions for headlines). (EN_UPPER_CASE_NGRAM)
Context: ...palette in Visual Studio Code - Shift+Command+P(Mac) / Ctrl+Shift+P (Windows...


Line range hint 146-146: Simplify language to enhance clarity.

The phrase 'install all necessary requirements' could be simplified to 'install all requirements' to avoid redundancy.
[REFACTOR_SUGGESTion]

- install all necessary requirements.
+ install all requirements.
Tools
LanguageTool

[misspelling] ~62-~62: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ...ant.io/integrations/debugpy/). ### Use devcontainer from Windows Subsystem for Linux (WSL) ...


[misspelling] ~64-~64: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ... Linux (WSL) It is possible to start a devcontainer from a Windows Subsystem for Linux (WSL...


[misspelling] ~66-~66: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ...buntu and [mount its directory into the devcontainer](https://developers.home-assistant.io/d...


[misspelling] ~71-~71: If the term is a proper noun, use initial capitals. (EN_SPECIFIC_CASE)
Context: ...https://docs.docker.com/get-docker/) - Visual Studio code - WSL ...


[misspelling] ~76-~76: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ...ur WSL distro, and clone your fork with git clone <url from your fork>. 4. Use the command `c...


[uncategorized] ~77-~77: Consider adding a hyphen. (TOP_LEFT_CORNER)
Context: ...re/to open Visual Studio Code. In the bottom left corner you will seeWSL: <name of the ...


[uncategorized] ~77-~77: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ... Visual Studio Code. In the bottom left corner you will see `WSL: <name of the distrib...


[uncategorized] ~78-~78: Consider adding a hyphen. (TOP_LEFT_CORNER)
Context: ...he "Reopen in Container" message in the bottom right corner or press the f1 key and select `...


[uncategorized] ~78-~78: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...ontainer. After Visual Studio Code has reopened you should see Dev Container: Home Ass...


[uncategorized] ~78-~78: Consider adding a hyphen. (TOP_LEFT_CORNER)
Context: ...v Container: Home Assistant Dev` in the bottom left corner. 6. You can verify that your dev...


[misspelling] ~80-~80: Only proper nouns start with an uppercase character (there are exceptions for headlines). (EN_UPPER_CASE_NGRAM)
Context: ...palette in Visual Studio Code - Shift+Command+P(Mac) / Ctrl+Shift+P (Windows...


[misspelling] ~87-~87: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ... instructions if you do not want to use devcontainers._ It is also possible to set up a more...


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Outside diff range comments (2)
docs/development_environment.mdx (2)

Line range hint 116-116: Standardize terminology for network adapters.

The term 'adaptor' should be standardized to 'adapter' throughout the document to maintain consistency and avoid confusion.

- find the `inet` address of the `eth0` adaptor
+ find the `inet` address of the `eth0` adapter
Tools
LanguageTool

[misspelling] ~62-~62: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ...ant.io/integrations/debugpy/). ### Use devcontainer from Windows Subsystem for Linux (WSL) ...


[misspelling] ~64-~64: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ... Linux (WSL) It is possible to start a devcontainer from a Windows Subsystem for Linux (WSL...


[misspelling] ~66-~66: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ...buntu and [mount its directory into the devcontainer](https://developers.home-assistant.io/d...


[misspelling] ~71-~71: If the term is a proper noun, use initial capitals. (EN_SPECIFIC_CASE)
Context: ...https://docs.docker.com/get-docker/) - Visual Studio code - WSL ...


[misspelling] ~76-~76: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ...ur WSL distro, and clone your fork with git clone <url from your fork>. 4. Use the command `c...


[uncategorized] ~77-~77: Consider adding a hyphen. (TOP_LEFT_CORNER)
Context: ...re/to open Visual Studio Code. In the bottom left corner you will seeWSL: <name of the ...


[uncategorized] ~77-~77: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ... Visual Studio Code. In the bottom left corner you will see `WSL: <name of the distrib...


[uncategorized] ~78-~78: Consider adding a hyphen. (TOP_LEFT_CORNER)
Context: ...he "Reopen in Container" message in the bottom right corner or press the f1 key and select `...


[uncategorized] ~78-~78: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...ontainer. After Visual Studio Code has reopened you should see Dev Container: Home Ass...


[uncategorized] ~78-~78: Consider adding a hyphen. (TOP_LEFT_CORNER)
Context: ...v Container: Home Assistant Dev` in the bottom left corner. 6. You can verify that your dev...


[misspelling] ~80-~80: Only proper nouns start with an uppercase character (there are exceptions for headlines). (EN_UPPER_CASE_NGRAM)
Context: ...palette in Visual Studio Code - Shift+Command+P(Mac) / Ctrl+Shift+P (Windows...


[misspelling] ~87-~87: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ... instructions if you do not want to use devcontainers._ It is also possible to set up a more...


Line range hint 132-132: Correct the verb form for 'set up'.

The phrase 'setup your local copy' should use the verb form 'set up'.

- Once forked, setup your local copy of the source using the commands:
+ Once forked, set up your local copy of the source using the commands:
Tools
LanguageTool

[misspelling] ~62-~62: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ...ant.io/integrations/debugpy/). ### Use devcontainer from Windows Subsystem for Linux (WSL) ...


[misspelling] ~64-~64: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ... Linux (WSL) It is possible to start a devcontainer from a Windows Subsystem for Linux (WSL...


[misspelling] ~66-~66: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ...buntu and [mount its directory into the devcontainer](https://developers.home-assistant.io/d...


[misspelling] ~71-~71: If the term is a proper noun, use initial capitals. (EN_SPECIFIC_CASE)
Context: ...https://docs.docker.com/get-docker/) - Visual Studio code - WSL ...


[misspelling] ~76-~76: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ...ur WSL distro, and clone your fork with git clone <url from your fork>. 4. Use the command `c...


[uncategorized] ~77-~77: Consider adding a hyphen. (TOP_LEFT_CORNER)
Context: ...re/to open Visual Studio Code. In the bottom left corner you will seeWSL: <name of the ...


[uncategorized] ~77-~77: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ... Visual Studio Code. In the bottom left corner you will see `WSL: <name of the distrib...


[uncategorized] ~78-~78: Consider adding a hyphen. (TOP_LEFT_CORNER)
Context: ...he "Reopen in Container" message in the bottom right corner or press the f1 key and select `...


[uncategorized] ~78-~78: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...ontainer. After Visual Studio Code has reopened you should see Dev Container: Home Ass...


[uncategorized] ~78-~78: Consider adding a hyphen. (TOP_LEFT_CORNER)
Context: ...v Container: Home Assistant Dev` in the bottom left corner. 6. You can verify that your dev...


[misspelling] ~80-~80: Only proper nouns start with an uppercase character (there are exceptions for headlines). (EN_UPPER_CASE_NGRAM)
Context: ...palette in Visual Studio Code - Shift+Command+P(Mac) / Ctrl+Shift+P (Windows...


[misspelling] ~87-~87: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ... instructions if you do not want to use devcontainers._ It is also possible to set up a more...


**Prerequisites**

- [Docker](https://docs.docker.com/get-docker/)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider mentioning Docker Engine as an alternative to Docker Desktop.

Given that Docker Engine might be preferred by some users due to its lower overhead compared to Docker Desktop, consider mentioning it as an alternative, especially now that WSL2 supports systemd. This could provide users with more flexibility in choosing their setup.

2. Go to [Home Assistant core repository](https://github.com/home-assistant/core) and click "fork".
3. Open the terminal of your WSL distro, and clone your fork with `git clone <url from your fork>`.
4. Use the command `code core/` to open Visual Studio Code. In the bottom left corner you will see `WSL: <name of the distribution you are using>`.
5. Reopen the project in a development container. In Visual Studio Code, either use the "Reopen in Container" message in the bottom right corner or press the f1 key and select `Dev Containers: Reopen in Container`. After Visual Studio Code has reopened you should see `Dev Container: Home Assistant Dev` in the bottom left corner.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clarify UI navigation instructions.

The instructions for reopening the project in a development container could be clearer. Specifically, the description of UI elements could benefit from the use of bold text to highlight buttons and labels, improving readability and user guidance.

- In Visual Studio Code, either use the "Reopen in Container" message in the bottom right corner or press the f1 key and select `Dev Containers: Reopen in Container`.
+ In Visual Studio Code, either use the **Reopen in Container** message in the **bottom-right corner** or press the **F1** key and select **Dev Containers: Reopen in Container**.
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
5. Reopen the project in a development container. In Visual Studio Code, either use the "Reopen in Container" message in the bottom right corner or press the f1 key and select `Dev Containers: Reopen in Container`. After Visual Studio Code has reopened you should see `Dev Container: Home Assistant Dev` in the bottom left corner.
5. Reopen the project in a development container. In Visual Studio Code, either use the **Reopen in Container** message in the **bottom-right corner** or press the **F1** key and select **Dev Containers: Reopen in Container**. After Visual Studio Code has reopened you should see **Dev Container: Home Assistant Dev** in the **bottom-left corner**.
Tools
LanguageTool

[uncategorized] ~78-~78: Consider adding a hyphen. (TOP_LEFT_CORNER)
Context: ...he "Reopen in Container" message in the bottom right corner or press the f1 key and select `...


[uncategorized] ~78-~78: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...ontainer. After Visual Studio Code has reopened you should see Dev Container: Home Ass...


[uncategorized] ~78-~78: Consider adding a hyphen. (TOP_LEFT_CORNER)
Context: ...v Container: Home Assistant Dev` in the bottom left corner. 6. You can verify that your dev...

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

Successfully merging this pull request may close these issues.

2 participants