[gnome-builder] gjs_symbols: don't ignore files in node_modules/



commit 49511a820a63bc087a20605e4ded802f71ba2213
Author: Giovanni Campagna <gcampagn cs stanford edu>
Date:   Sun Nov 26 02:39:01 2017 -0800

    gjs_symbols: don't ignore files in node_modules/
    
    The code indexer already ignores all directories that are gitignored.
    If node_modules/ is not gitignored, it means it contains files that
    the developer cares about.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=790846

 src/plugins/gjs-symbols/gjs_symbols.py |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/gjs-symbols/gjs_symbols.py b/src/plugins/gjs-symbols/gjs_symbols.py
index be9ab12..87a6cab 100644
--- a/src/plugins/gjs-symbols/gjs_symbols.py
+++ b/src/plugins/gjs-symbols/gjs_symbols.py
@@ -356,9 +356,6 @@ class GjsCodeIndexer(Ide.Object, Ide.CodeIndexer):
         return nodes
 
     def do_index_file(self, file_, build_flags, cancellable):
-        if 'node_modules' in file_.get_path().split(os.sep):
-            return None  # Avoid indexing these
-
         launcher = GjsSymbolProvider._get_launcher(self.get_context(), file_)
         proc = launcher.spawn()
         success, stdout, stderr = proc.communicate_utf8(None, None)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]