This is an automated email from the ASF dual-hosted git repository.
lkishalmi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new 9de35cc NETBEANS-4893 - Added node_modules and bower_components to
the option ignore files pattern in the misc tab.
9de35cc is described below
commit 9de35cc4173f63d95a114c7aab163f6f8ab6a19f
Author: Chris <[email protected]>
AuthorDate: Fri Oct 9 21:14:07 2020 +0200
NETBEANS-4893 - Added node_modules and bower_components to the option
ignore files pattern in the misc tab.
It will prevent indexing those folders while using NetBeans for the
first time and opening a web project with a package.json and/or a
bower.json.
---
.../org/netbeans/core/ui/options/filetypes/IgnoredFilesPreferences.java | 2 +-
.../src/org/netbeans/modules/masterfs/GlobalVisibilityQueryImpl.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git
a/platform/core.ui/src/org/netbeans/core/ui/options/filetypes/IgnoredFilesPreferences.java
b/platform/core.ui/src/org/netbeans/core/ui/options/filetypes/IgnoredFilesPreferences.java
index d04dec7..b4d475f 100644
---
a/platform/core.ui/src/org/netbeans/core/ui/options/filetypes/IgnoredFilesPreferences.java
+++
b/platform/core.ui/src/org/netbeans/core/ui/options/filetypes/IgnoredFilesPreferences.java
@@ -42,7 +42,7 @@ final class IgnoredFilesPreferences {
private static final String PROP_IGNORE_HIDDEN_FILES_IN_USER_HOME
= "IgnoreHiddenFilesInUserHome"; //
NOI18N
/** Default ignored files pattern. Pattern \.(cvsignore|svn|DS_Store) is
covered by ^\..*$ **/
- static final String DEFAULT_IGNORED_FILES =
"^(CVS|SCCS|vssver.?\\.scc|#.*#|%.*%|_svn)$|~$|^\\.(git|hg|svn|cache|DS_Store)$|^Thumbs.db$";
//NOI18N
+ static final String DEFAULT_IGNORED_FILES =
"^(CVS|SCCS|vssver.?\\.scc|#.*#|%.*%|_svn)$|~$|^\\.(git|hg|svn|cache|DS_Store)$|^(node_modules|bower_components)$|^Thumbs.db$";
//NOI18N
static private String syntaxError;
private IgnoredFilesPreferences() {
diff --git
a/platform/masterfs/src/org/netbeans/modules/masterfs/GlobalVisibilityQueryImpl.java
b/platform/masterfs/src/org/netbeans/modules/masterfs/GlobalVisibilityQueryImpl.java
index eb1a99a..26d7884 100644
---
a/platform/masterfs/src/org/netbeans/modules/masterfs/GlobalVisibilityQueryImpl.java
+++
b/platform/masterfs/src/org/netbeans/modules/masterfs/GlobalVisibilityQueryImpl.java
@@ -134,7 +134,7 @@ public class GlobalVisibilityQueryImpl implements
VisibilityQueryImplementation2
protected String getIgnoredFiles() {
// \.(cvsignore|svn|DS_Store) is covered by ^\..*$
- String retval = getPreferences().get(PROP_IGNORED_FILES,
"^(CVS|SCCS|vssver.?\\.scc|#.*#|%.*%|_svn)$|~$|^\\.(git|hg|svn|cache|DS_Store)$|^Thumbs.db$");//NOI18N;
+ String retval = getPreferences().get(PROP_IGNORED_FILES,
"^(CVS|SCCS|vssver.?\\.scc|#.*#|%.*%|_svn)$|~$|^\\.(git|hg|svn|cache|DS_Store)$|^(node_modules|bower_components)$|^Thumbs.db$");//NOI18N;
PreferenceChangeListener listenerToAdd;
synchronized (this) {
if (preferencesListener == null) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists