mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
deco - don't call check-ignore without files
This commit is contained in:
@@ -650,6 +650,11 @@ export class Repository implements Disposable {
|
||||
|
||||
filePaths = filePaths.filter(filePath => !path.relative(this.root, filePath).startsWith('..'));
|
||||
|
||||
if (filePaths.length === 0) {
|
||||
// nothing left
|
||||
return Promise.resolve(new Set<string>());
|
||||
}
|
||||
|
||||
const child = this.repository.stream(['check-ignore', ...filePaths]);
|
||||
|
||||
const onExit = exitCode => {
|
||||
|
||||
Reference in New Issue
Block a user