Ignore anything starting with ".git"

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

No files matched your search

@@ -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);