@@ -80,6 +80,13 @@ define(function (require, exports, module) {
8080 */
8181 var _exclusionListRegEx = / \. p y c $ | ^ \. g i t $ | ^ \. g i t i g n o r e $ | ^ \. g i t m o d u l e s $ | ^ \. s v n $ | ^ \. D S _ S t o r e $ | ^ T h u m b s \. d b $ | ^ \. h g $ | ^ C V S $ | ^ \. c v s i g n o r e $ | ^ \. g i t a t t r i b u t e s $ | ^ \. h g t a g s $ | ^ \. h g i g n o r e $ / ;
8282
83+ /**
84+ * @private
85+ * File names which are not showed in quick open dialog
86+ * @type {RegExp }
87+ */
88+ var _binaryExclusionListRegEx = / \. s v g z $ | \. j s z $ | \. z i p $ | \. g z $ | \. h t m z $ | \. h t m l z $ | \. r a r $ | \. t a r $ | \. e x e $ | \. b i n $ / ;
89+
8390 /**
8491 * @private
8592 * Reference to the tree control container div. Initialized by
@@ -637,6 +644,15 @@ define(function (require, exports, module) {
637644 function shouldShow ( entry ) {
638645 return ! entry . name . match ( _exclusionListRegEx ) ;
639646 }
647+
648+ /**
649+ * Returns true if fileName's extension doesn't belong to binary (e.g. archived)
650+ * @param {string } fileName
651+ * @return {boolean }
652+ */
653+ function isBinaryFile ( fileName ) {
654+ return fileName . match ( _binaryExclusionListRegEx ) ;
655+ }
640656
641657 /**
642658 * @private
@@ -1559,6 +1575,7 @@ define(function (require, exports, module) {
15591575 exports . isWithinProject = isWithinProject ;
15601576 exports . makeProjectRelativeIfPossible = makeProjectRelativeIfPossible ;
15611577 exports . shouldShow = shouldShow ;
1578+ exports . isBinaryFile = isBinaryFile ;
15621579 exports . openProject = openProject ;
15631580 exports . getSelectedItem = getSelectedItem ;
15641581 exports . getInitialProjectPath = getInitialProjectPath ;
0 commit comments