Brandon Fergerson
- Total activity 85
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 7
- Subscriptions 21
-
Edited Programmatically auto import suggested imports
AnsweredI'm aware you can use JavaCodeStyleManager.shortenClassReferences() to automatically add imports for code that is fully qualified, but how would you do something similar with code that is not fully... -
Created Using "any" language with LanguageExtensionPoint
AnsweredThere exists a Language.ANY, which I take to be a wildcard language, but it does not appear any of the extensions using LanguageExtensionPoint treat it as a wildcard. Is there a way to make those e... -
Edited Get PSI reference in standalone parser
AnsweredI'm trying to get references for a method using a standalone PSI parser. The following code gets close but results in an NPE: import com.intellij.core.JavaCoreApplicationEnvironmentimport com.inte... -
Edited Standalone UAST parser
AnsweredI'm using the following code to create a standalone UAST parser: https://github.com/bfergerson/standalone-uast I'm able to get UFile & UClass objects from Java files but only UFile objects from Kot... -
Edited Disable SimpleTreeStructure auto-expand with single child
AnsweredHow do I disable auto-expand in SimpleTreeStructure when there is only a single child element? I'm trying to display a recursive object and this auto-expand functionality is opening an infinite cha... -
Created Dynamic plugin using ProjectManagerListener
AnsweredMy plugin is using ProjectManagerListener and it works correctly when the IDE starts but it's not called when the plugin is installed while the IDE is active. I'm not seeing anything about this lis... -
Edited Add inspections/dependencies to file outside src
AnsweredI'm trying to create a self-contained single file application to serve as a way of extending my plugin's functionality with custom code. The idea being my plugin will look for these files in a dire... -
Created Remove inlay created through InlayHintsSink
AnsweredI'm extending InlayHintsProvider and adding inlay hints through InlayHintsSink, but I don't see how to remove those inlays once they're added. Using InlayModel I get an instance of Inlay which I co...