Skip to content

consider a git init on an empty folder to still be empty#314249

Draft
amunger wants to merge 1 commit intomainfrom
aamunger/newWorkspaceTool
Draft

consider a git init on an empty folder to still be empty#314249
amunger wants to merge 1 commit intomainfrom
aamunger/newWorkspaceTool

Conversation

@amunger
Copy link
Copy Markdown
Collaborator

@amunger amunger commented May 4, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 4, 2026 21:42
@amunger
Copy link
Copy Markdown
Collaborator Author

amunger commented May 4, 2026

~requires-eval-assessment vscbench

 "jupyter.interactiveWindow.notebookRepl": true

@amunger amunger added the ~requires-eval-assessment Evals will be run and will generate a report upon completion label May 4, 2026
@vs-code-engineering
Copy link
Copy Markdown
Contributor

⏳ Queued vscode build for 422482f6976420bf6cfd4c347d4e0d9f2ea91792 (step 1/2).

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Copilot new-workspace flow in the built-in extension so that folders containing only a .git entry are treated as effectively empty, which is intended to support freshly git init'd or empty cloned repositories.

Changes:

  • Added a helper in the new workspace tool to classify .git-only folders as effectively empty.
  • Reused that helper when checking the current workspace before prompting to open another folder.
  • Reused the same helper when validating a folder selected from the open-folder dialog.
Show a summary per file
File Description
extensions/copilot/src/extension/tools/node/newWorkspace/newWorkspaceTool.tsx Broadens the empty-folder check used by the Copilot new-workspace scaffolding flow.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment on lines +47 to +49
private async _isEffectivelyEmpty(folder: Uri): Promise<boolean> {
const entries = await this.fileSystemService.readDirectory(folder);
return entries.every(([name]) => name === '.git');
@github-actions

This comment was marked as low quality.

@vs-code-engineering
Copy link
Copy Markdown
Contributor

🚀 Queued eval-assessment publish build for 333a3373cac88903f6fcbac7b62edd916125013e (step 2/2).

@vs-code-engineering
Copy link
Copy Markdown
Contributor

✅ Eval-assessment build published.

@vs-code-engineering vs-code-engineering Bot removed the ~requires-eval-assessment Evals will be run and will generate a report upon completion label May 4, 2026
@vs-code-engineering
Copy link
Copy Markdown
Contributor

🔬 Queued eval-assessment benchmark for 1886719d46.

  • Package: @vscode/vscode-copilot-evaluation-agent@0.0.0-dev.333a3373ca (dev tag)
  • Benchmark: vscbench
  • VS Code overrides: applied from PR comment (1 line(s))
  • Model: claude-sonnet-4.5
  • Tracking issue: https://github.com/github/evald/issues/20294

Results will be posted back here when the run completes.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants