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

0
2 comments

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

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.