forbid indexation inside jar files for my plugin (problem with same extension name)


The language parsed by my plugin is using ’.res’ extension, that conflict with some resource files with ’.res’ extension also. These files can be found in .jar files (and can be binary).

I have a lot of problems with indexing right now because of that.

Is it possible to indicate that any file inside a jar must not be indexed by my plugin ? or something else that can prevent to use my plugin to index unrelated files ?


Comment actions Permalink


You can filter the files to index with the filter returned from FileBasedIndexExtension.getInputFilter().

Related documentation page:

Comment actions Permalink

Thank you.

finally I found that I can use com.intellij.openapi.fileTypes.ex.FileTypeIdentifiableByVirtualFile in my LanguageFileType to exclude archives.
It seems to work ok for now.


Please sign in to leave a comment.