Access Repository Informations for PsjFiles
Answered
Hello,
I want to access the Annotations from a GIt or SVN to a PsiFiles? Is this possible and how can I do this?
regards
Chris
Please sign in to leave a comment.
What do you want to do with these annotations?
For example, you can load them like this (though, it's better not to access vcs from EDT or while holding readLock - so file content might be already changed)
You can use `UpToDateLineNumberProviderImpl` to convert "local line numbers" to "annotated line numbers".
Hello, I want to know the author of the File by counting the Lines by Author.
This part of platform is not really extendable, but the code snippet below should work.
(Keep in mind, that `annotationsProvider.annotate` is a potentially slow operation, up to 30s for big/old files and Win machines.)