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 ?
thanks
请先登录再写评论。
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
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.