mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Filter out dotfiles
This commit is contained in:
1 parent
36c32faf45
commit
0281369fe0
1 file changed
+2
-3
@@ -207,7 +207,7 @@ define(function (require, exports, module) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return excludes.test(file.name);
|
||||
return file.name[0] === "." || excludes.test(file.name);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -900,7 +900,7 @@ define(function (require, exports, module) {
|
||||
FileSystem.resolve(dir, function (err, directory) {
|
||||
function visitor(entry) {
|
||||
if (entry.isFile) {
|
||||
if (!isFileExcluded(entry) && entry.name.indexOf(".") !== 0) { // ignore .dotfiles
|
||||
if (!isFileExcluded(entry)) { // ignore .dotfiles
|
||||
var languageID = LanguageManager.getLanguageForPath(entry.fullPath).getId();
|
||||
if (languageID === HintUtils.LANGUAGE_ID) {
|
||||
addFilesToTern([entry.fullPath]);
|
||||
@@ -908,7 +908,6 @@ define(function (require, exports, module) {
|
||||
}
|
||||
} else {
|
||||
return !isDirectoryExcluded(entry.fullPath) &&
|
||||
entry.name.indexOf(".") !== 0 &&
|
||||
!stopAddingFiles;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user