how to get all indices used by one file type?

Answered

For example, I want to know which kinds of stub or file-based indices are used by .py, .java, .c and so on…

I don't need to get the data of indices, just the indices extension type is ok.

is there anyone has some idea :-0

0
4 comments

Hi,

I understand that you want to know if e.g. Python uses file-based index, stub index, and possibly other. I don't think there is an API for this. Could you please elaborate on your use case? Why do you need it?

0

I just found a way to get file-based index's:


for (var extension : FileBasedIndexExtension.EXTENSION_POINT_NAME.getExtensionList()) {
    boolean isSuitable = extension.getInputFilter().acceptInput(vFile);
}

But how to get stub's is unknown…

1

Reply to first comment:

I just want to show the possiable indices which a file may use to plugin developers.

0

You can use plugin Index Viewer https://plugins.jetbrains.com/plugin/13029-index-viewer , open a file and use Show Index For File action from context menu to see all indexes that have information about the current file.

0

Please sign in to leave a comment.