Skip to content

Opening a devcontainer.json file in a codespace opens a prompt to install git locally #236120

Open
@kzvi

Description

  • VS Code Version: 1.96.0
  • OS Version: macOS 14.7.1
  • Github Codespaces extension version: 1.17.3
  1. Open a Github Codespace using the Codespaces extension
  2. Open the .devcontainer/devcontainer.json file in the codespace

Then this window pops up:

Image

It seems that opening a devcontainer.json file causes VS Code or the Codespaces extension to try to invoke git locally, which opens a window if the "command line tools" package from Apple isn't installed.

In my opinion, VS Code shouldn't be trying to invoke git locally if I am only using it to access a codespace. But if it is necessary, perhaps VS Code should first check if git is available.

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buggitGIT issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions