Notable Changes in IntelliJ Platform and Plugins API 2019.*
2019.3
IntelliJ Platform 2019.3
PlatformTestCaserenamed toHeavyPlatformTestCaseNow reflects its "heavy test" characteristics (see Light and Heavy Tests).
- Support for transitive optional plugin dependencies
Optional plugin.xml configuration files can now specify
<depends>. Issue- Theme/Keymap plugins do not require restart
(Un)Installing or enabling/disabling Theme or Keymap plugins doesn't require an IDE restart anymore.
- Run task once (per project)
Use
com.intellij.ide.util.RunOnceUtilto run a task exactly once for application or per project.- Symbol completion in plain text editor (VCS Commit Message)
Contribute symbol names (classes, methods, ...) via
com.intellij.completion.plainTextSymbolextension point (PlainTextSymbolCompletionContributor).- User-customizable date/time formatting
Use
com.intellij.util.text.JBDateFormat#getFormatter()to use configured format from .
IntelliJ IDEA 2019.3
- Unbundled plugins
Several plugins (Heroku integration, RubyMotion support, Java Applets Support) for no longer actively maintained technology have been moved to a separate repository. If your plugin depends on them, users will need to install them from the JetBrains Marketplace.
2019.2
IntelliJ Platform 2019.2
- Quickfixes for file-level notifications
Consistent with other quickfixes, the menu now shows names of fixes, not names of problems themselves. Issue
- Create HTML representation of code
Use
com.intellij.openapi.editor.richcopy.HtmlSyntaxInfoUtilto create Lexer-based highlighted code samples, e.g., for usage in documentation.Toggles showing additional details in UI (e.g. modification timestamp in Project View) see
UISettings.getShowInplaceComments().- New API for Editor Inlay Hints
Allows a variety of presentations (incl. custom painting), mouse event handling, and exposing settings in . See
com.intellij.codeInsight.hints.InlayHintsProvider.com.intellij.openapi.vfs.AsyncFileListenerA non-blocking variant for
com.intellij.openapi.vfs.newvfs.BulkFileListener.com.intellij.openapi.util.ColoredItemProvides background color in all Trees, Lists and ComboBoxes.
com.intellij.openapi.startup.StartupActivitybackground variantUse new dedicated
com.intellij.backgroundPostStartupActivityextension point (see Javadoc forStartupActivity#BACKGROUND_POST_STARTUP_ACTIVITY).com.intellij.codeHighlighting.TextEditorHighlightingPassFactoryregistrationUse new dedicated
com.intellij.highlightingPassFactoryextension point.com.intellij.openapi.fileTypes.FileTypeFactorydeprecatedWhen registering a file type via file extension, pattern, or exact filename matching, use
com.intellij.fileTypeextension point instead (see Sample).@org.jetbrains.annotations.ApiStatus.NonExtendableIndicates that the annotated API class, interface, or method must not get extended, implemented, or overridden by external plugins but can only be obtained or instantiated for classes and interfaces, or called for methods.
@org.jetbrains.annotations.ApiStatus.OverrideOnlyIndicates that the annotated method is part of SPI (Service Provider Interface), which is intended to be only implemented or overridden but never called by external plugins.
com.intellij.util.Query.forEachDefaults to thread-safe to prevent problems with clients using unsynchronized collections.
com.intellij.openapi.projectRoots.SdkType#getInvalidHomeMessageReturns dedicated message when invalid SDK path was chosen (e.g., JRE instead of JDK).
IntelliJ IDEA 2019.2
- Java functionality extracted as a plugin
If your plugin depends on Java, it must be specified now; see Java for details.
- Unbundled plugins
Several plugins (J2ME, JsTestDriver, Struts 1.x) for no longer actively maintained technology have been moved to a separate repository. If your plugin depends on them, users will need to install them from the JetBrains Marketplace.
2019.1
IntelliJ Platform 2019.1
com.intellij.testFramework.InspectionTestCasechanged to light testUse dedicated
ProjectDescriptoror rollback project setup changes intearDown()(see Light and Heavy Tests).@org.jetbrains.annotations.ApiStatus.AvailableSinceExternal annotations for the IntelliJ Platform are generated and attached to plugin projects automatically (replacing
@sinceJavadoc).@org.jetbrains.annotations.ApiStatus.ScheduledForRemovalExternal annotations for the IntelliJ Platform are generated and attached to plugin projects automatically. This allows highlighting of API, which has been removed in newer platform versions.
@org.jetbrains.annotations.ApiStatus.InternalIndicates that the annotated element must not be considered as a public API. Do not use outside of the IntelliJ Platform, see Internal API Migration.
PsiReferenceProviderassert underlying elementAssert references are created for the given underlying
PsiElement. IssueCachedValuemore strict assertionsEnabled in tests and EAP/internal mode, see
CachedValueStabilityCheckerJavadoc.