Home
IDEs Support (IntelliJ Platform) | JetBrains
Submit a request
Community
Sign in
Peter Gromov
Follow
New articles and posts
New articles, posts, and comments
Total activity
2256
Last activity
April 14, 2022 14:52
Member since
July 25, 2008 18:59
Following
0 users
Followed by
1 user
Votes
0
Subscriptions
738
Activity overview
Articles (0)
Posts (3)
Comments (1515)
Sort by votes
Recent activity
Votes
Created
March 08, 2016 13:37
To be honest: pusher is a hack. Our indices are supposed to depend only on file and its content. But there are situations when they depend on something else: project language level for Java, templa...
Community
IntelliJ IDEA Open API and Plugin Development
Python-like selectable templating laguages
2 votes
Created
March 21, 2019 09:10
Unfortunately there are no good examples. We're working on creating a good API for that, but for now, you'd have to extend FakePsiElement, return it from resolve(), and make its getNavigationElemen...
Community
IntelliJ IDEA Open API and Plugin Development
GotoDeclarationHandler with multiple targets: How to change the rendering of found targets?
1 vote
Created
January 02, 2019 10:06
Having such generically reference-contributable PSI is a possibility, thanks. Your use case counts in its favor. Unfortunately it's not easy to implement, as all clients of "getReference(s)" (inclu...
Community
IntelliJ IDEA Open API and Plugin Development
PsiElement.replace() proper way to do?
1 vote
Created
December 28, 2018 13:32
Indeed, there's no way currently to add custom references to just any PSI element. So CPP-15012 is the best way to achieve your goal. You could try to work around that by implementing com.intellij....
Community
IntelliJ IDEA Open API and Plugin Development
PsiElement.replace() proper way to do?
1 vote
Created
November 23, 2018 15:31
Please try registering this completion contributor with `order="last"` in plugin.xml
Community
IntelliJ IDEA Open API and Plugin Development
Asynchronous completion contributor
1 vote
Created
October 28, 2018 18:12
Sure, opening an editor for a file in a toolwindow is easy, just use EditorFactory to create an editor for the document corresponding to that file. It's editing Python fragment that's currently ver...
Community
IntelliJ IDEA Open API and Plugin Development
Plugin design approach
1 vote
Created
August 05, 2018 00:25
Yes, you're right. Patterns aren't supposed to be a substitution for everything, just for the most frequent checks (mostly syntactic).
Community
IntelliJ IDEA Open API and Plugin Development
What is the idiomatic way to use Pattern framework in platform/core-api/com.intellij.patterns?
1 vote
Created
June 24, 2018 20:08
You can get the file's document (PsiFile#getViewProvider#getDocument), find line range (Document#getLineStartOffset/getLineEndOffset), then find your text's offset inside that range (Document#getIm...
Community
IntelliJ IDEA Open API and Plugin Development
How to get a PsiElement by it's text?
1 vote
Created
June 16, 2018 14:34
If the UI is blocked, this means that Swing thread isn't processing events properly. You can check what it does instead by taking a thread dump.
Community
IntelliJ IDEA Open API and Plugin Development
Is it possible to not block UI when UI depends on background tasks?
1 vote
Created
April 25, 2018 05:11
AFAIK there are no tutorial-like examples, but there are some real usages in intellij-community source, particularly in "IntelliLang" directory, e.g. DefaultLanguageInjector.
Community
IntelliJ IDEA Open API and Plugin Development
Is it possible to extend template language support - Velocity with SQL?
1 vote
1
2
3
4
5
6
›
»