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

Answered

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 ?

thanks

2 comments
Comment actions Permalink

Hi,

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

Related documentation page: https://plugins.jetbrains.com/docs/intellij/file-based-indexes.html#implementing-a-file-based-index

0
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.

0

Please sign in to leave a comment.