microsoft / TypeChat

TypeChat is a library that makes it easy to build natural language interfaces using types.
https://microsoft.github.io/TypeChat/
MIT License
8.06k stars 379 forks source link

Set developer settings when using the devcontainer in python folder #157

Closed hillary-mutisya closed 6 months ago

hillary-mutisya commented 6 months ago

This change configures hatch to set up the python virtual environment in the project folder when using the dev container. We also set the python interpretter path to the hatch virtual environment.

DanielRosenwasser commented 6 months ago

I spoke to @luabud who confirmed that this is going to end up being unreliable across machines. She suggested instead including the settings within the devcontainer.json itself:

    // Configure tool-specific properties.
    "customizations": {
        "vscode": {
            "extensions": [
                "ms-python.python",
            ],
            "settings": {
                "python.defaultInterpreterPath": "/workspaces/TypeChat/python/.hatch/typechat/bin/python3.12"
            }
        }
    }

What do you think?

hillary-mutisya commented 6 months ago

That works! I updated the PR