fixes #101795
This commit is contained in:
parent
5bce26e574
commit
b18015d0f8
1 changed files with 4 additions and 0 deletions
|
@ -140,6 +140,10 @@ export async function publishRepository(gitAPI: GitAPI, repository?: Repository)
|
|||
const ignored = new Set(children);
|
||||
result.forEach(c => ignored.delete(c.label));
|
||||
|
||||
if (ignored.size === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
const raw = [...ignored].map(i => `/${i}`).join('\n');
|
||||
const encoder = new TextEncoder();
|
||||
await vscode.workspace.fs.writeFile(gitignore, encoder.encode(raw));
|
||||
|
|
Loading…
Reference in a new issue