forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
Description
Behaviour
"Create Environment" does not create .gitignore
file
Steps to reproduce:
- "Create Environment"
- 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):
Still in v2024.14.1:
vscode-python/python_files/create_venv.py
Lines 137 to 141 in 2ac2c20
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 bugIssue identified by VS Code Team member as probable bugtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team