Ignore anything starting with ".git"

Fixes #29782
This commit is contained in:
Sheetal Nandi
2019-03-06 15:00:26 -08:00
parent 79a1f29727
commit ec2ee9ff3a
5 changed files with 29 additions and 10 deletions

View File

@@ -183,6 +183,22 @@ namespace ts.projectSystem {
host.checkTimeoutQueueLength(0);
verifyProject();
const gitIgnoredFileFromIgnoreDirectory: File = {
path: `${projectFolder}/.git/someFile.d.ts`,
content: ""
};
host.ensureFileOrFolder(gitIgnoredFileFromIgnoreDirectory);
host.checkTimeoutQueueLength(0);
verifyProject();
const gitIgnoredFile: File = {
path: `${projectFolder}/.gitCache.d.ts`,
content: ""
};
host.ensureFileOrFolder(gitIgnoredFile);
host.checkTimeoutQueueLength(0);
verifyProject();
function verifyProject() {
checkWatchedDirectories(host, emptyArray, /*recursive*/ true);
checkWatchedFilesDetailed(host, expectedWatchedFiles);