Skip to content

Bug: "Create Environment" does not create .gitignore #24151

@bersbersbers

Description

@bersbersbers

Behaviour

"Create Environment" does not create .gitignore file

Steps to reproduce:

  1. "Create Environment"
  2. Check .gitignore file

Diagnostic data

The problem was introduced in 462b9bf - someone dropped a not in one of the two add_gitignore implementations (the conda one is fine, the venv one is not):

image

Still in v2024.14.1:

def add_gitignore(name: str) -> None:
git_ignore = CWD / name / ".gitignore"
if git_ignore.is_file():
print("Creating:", os.fspath(git_ignore))
git_ignore.write_text("*")

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugtriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions