Repository navigation
Open
Description
The plugin verifier reports 29 deprecated IntelliJ APIs that LSP4IJ still uses. The source is Verify plugin on main at 9ad31b0, checked against the IntelliJ releases from 2024.2 to 2026.3 EAP. None of them is scheduled for removal.
This issue lists each deprecated API with:
- when it was deprecated;
- what the platform names as its replacement;
- whether that replacement already exists in 2024.2, LSP4IJ's minimum;
- where LSP4IJ uses it, and how much work a switch is.
Tick each one off as it's replaced.
Replaceable now: the replacement exists in 2024.2
-
com.intellij.execution.process.ProcessAdapter, deprecated in 2025.2. UseProcessListener, whose methods have defaults since 2024.2. InExecTask.run. Trivial. Done in chore: replace the deprecated IntelliJ APIs that have a replacement in 2024.2 #2032. -
InlayHintsProviderFactory.getProvidersInfo(Project), deprecated in 2024.1 or earlier. UsegetProvidersInfo(), which LSP4IJ already overrides, so the deprecated override can just be deleted. InLSPInlayHintProvidersFactory. Trivial. Done in chore: replace the deprecated IntelliJ APIs that have a replacement in 2024.2 #2032. -
FileChooserDescriptorFactory.createSingleFileDescriptor(), deprecated in 2025.1. UsesingleFile()from 2025.1; until thencreateSingleFileNoJarsDescriptor(), which isn't deprecated. InDebugAdapterServerPanel.addConfigurationTab. Trivial. Done in chore: replace the deprecated IntelliJ APIs that have a replacement in 2024.2 #2032, withnew FileChooserDescriptor(true, true, true, true, false, false), which is what it returns in 2024.2:createSingleFileNoJarsDescriptor()takes no folder, and a program to debug can be one, such as a Go package. -
java.net.URL(String), deprecated in Java 20. UseURI.create(spec).toURL().-
GitHubAssetFetcherandMavenArtifactFetcher: trivial. Done in chore: replace the deprecated IntelliJ APIs that have a replacement in 2024.2 #2032. -
JarUriConverter: small, sinceURI.createthrows anIllegalArgumentExceptionfor unencoded characters, whichnew URLaccepted. Done in chore: replace three more deprecated APIs of #1971 #2088, which percent-encodes a URI thatURIrejects first.
-
-
ReadAction.compute(ThrowableComputable)andReadAction.run(ThrowableRunnable), deprecated in 2026.1. Their named replacements,computeBlockingandrunBlocking, only exist from 2026.1.Application.runReadAction, which those delegate to, exists in 2024.2 and isn't deprecated. InLSPLinkedEditingRangeSynchronizerandLSPParameterInfoHandler. Trivial. Done in chore: replace the deprecated IntelliJ APIs that have a replacement in 2024.2 #2032, with those ofLSPPendingHoverDocumentationTargetandDAPValue, which came later. A call that returns a value casts its lambda toComputable: 2026.3 has norunReadAction(ThrowableComputable). -
DynamicBundle(String), deprecated in 2026.3 and@Obsoletebefore that. UseDynamicBundle(Class, String), or better, delegate to an instance instead of subclassing. InLanguageServerBundleandDAPBundle. Trivial. Done in chore: replace the deprecated IntelliJ APIs that have a replacement in 2024.2 #2032. -
Document.addDocumentListener(DocumentListener), deprecated in 2025.3. UseaddDocumentListener(DocumentListener, Disposable).-
WorkspaceFoldersPanel, which isDisposableand disposed withLanguageServerPanel: done in chore: replace the deprecated IntelliJ APIs that have a replacement in 2024.2 #2032. -
DebugAdapterServerPanel: its three owners dispose it with a direct call ofdispose(), not through theDisposer, so it can't be the parent of a listener. Done in chore: replace three more deprecated IntelliJ APIs of #1971 #2040, withEditorTextField.addDocumentListenerthroughJsonTextField, which needs noDisposable. -
JsonTextField: done in chore: replace three more deprecated IntelliJ APIs of #1971 #2040, withEditorTextField.addDocumentListener, which needs noDisposable.
-
-
InspectionOptionsPanel(), deprecated in 2024.1 or earlier. UseInspectionProfileEntry.getOptionsPane()withOptPane.pane(OptPane.stringList(...)). InAbstractDelegateInspectionWithExclusions. Small, but Quarkus Tools and Liberty Tools extend that class and change itsexcludeList, so the options pane, which bindsexcludeListby name, needs testing with them. Done in chore: replace three more deprecated APIs of #1971 #2088, withOptPane.stringList("excludeList", label). -
PluginDescriptor.getClassLoader(), deprecated in 2026.1. UsegetPluginClassLoader(), which is nullable. InServerExtensionPointBeanandDebugAdapterServerExtensionPointBean. Small. Done in chore: replace three more deprecated IntelliJ APIs of #1971 #2040, with the fallback thatgetClassLoader()has, the class loader of the descriptor's class. -
ExtensionPoint.addExtensionPointListener(ExtensionPointListener, boolean, Disposable), deprecated in 2025.2. Done in chore: replace three more deprecated APIs of #1971 #2088, with a scope of each service's own, which itsdispose()cancels.- Correction (6 internal API usages #2274): the overload chore: replace three more deprecated APIs of #1971 #2088 chose,
ExtensionPointName.addExtensionPointListener(CoroutineScope, ExtensionPointListener), is@ApiStatus.Internalfrom 2024.3 to 2026.2, and internal API blocks the Marketplace. fix: LSP4IJ uses no internal IntelliJ API, which the Marketplace verification of the nightly build reported #2276 usesExtensionPointName.addExtensionPointListener(ExtensionPointListener, Disposable)instead: never internal, but deprecated from 2025.3. No overload is both public and not deprecated on 2024.2 to 2026.3; see the item under Needs a newer minimum version. - The named replacement, with a
CoroutineScope, only exists from 2025.2.ExtensionPointName.addExtensionPointListener(CoroutineScope, ExtensionPointListener)exists in 2024.2 and fits, since both calls passfalse. - In
LanguageServersRegistryandServerInstallerManager. Small, if these services can get aCoroutineScopeon 2024.2, which is not confirmed.
- Correction (6 internal API usages #2274): the overload chore: replace three more deprecated APIs of #1971 #2088 chose,
-
EnterBetweenBracesHandler, deprecated in 2024.1 or earlier. Use a language-specificEnterBetweenBracesDelegate, through thecom.intellij.enterBetweenBracesDelegateextension point. Needs work: LSP4IJ's handler works for TextMate and abstract file types, and relies on the inherited brace check. InLSPEditorImprovementsEnterBetweenBracesHandler. Done in fix: LSP4IJ's Enter between braces applies only to the files of language servers, without the deprecated EnterBetweenBracesHandler #2332, without a delegate, which can't rewrite the braces once the Enter is done: the handler extendsEnterHandlerDelegateAdapter, and runs a privateEnterBetweenBracesFinalHandler, the non-deprecated class that the deprecated one extends, on the files that it fixes. -
Notification.setListener(NotificationListener), deprecated in 2024.1 or earlier. UseaddAction(AnAction). Needs work: the listener opens<a href>links inside messages from language servers, which actions can't replace. InServerMessageHandler,ServerInstallerManager,ShowMessageTaskandCommandExecutor. -
UpdateHighlightersUtil.setHighlightersToEditor(...), deprecated in 2025.3.- Replacement:
BackgroundUpdateHighlightersUtil.setHighlightersToEditor(...). It exists in 2024.2, but is@Experimental, and only works inside a highlighting pass, in a background read action. - Needs work: LSP4IJ applies its highlighters reactively on the EDT, outside a highlighting pass. In
LSPDiagnosticsApplierandLSPDocumentLinkApplier.
- Replacement:
-
PluginDescriptor.getClassLoader(), deprecated in 2026.1, used again by feat: warn when IntelliJ's own LSP client also serves a file of LSP4IJ, from 2026.3 on #2077 inJetBrainsLanguageServers.getClassLoaderOfPage, after chore: replace three more deprecated IntelliJ APIs of #1971 #2040 replaced the other uses. UsegetPluginClassLoader(), as chore: replace three more deprecated IntelliJ APIs of #1971 #2040 did. Done in fix: no IntelliJ API scheduled for removal, and no deprecated getClassLoader(), on any supported IntelliJ #2277. -
FileUtil.delete(Path), scheduled for removal from 2025.2, used by fix: install perl-lsp and perl-dap where their checks and commands look for them #2057 inDownloadTask.moveContentInto. Done in fix: no IntelliJ API scheduled for removal, and no deprecated getClassLoader(), on any supported IntelliJ #2277, withNioFiles.deleteRecursively(Path), public and not deprecated on 2024.2 to 2026.3, and the same code. -
FileUtil.expandUserHome(String), scheduled for removal from 2025.3, used by fix: a DAP attach without a port is an error that names the field, and the Working directory and File take ~ and relative paths #2302 inDAPRunConfigurationOptions.resolvePath. Its replacement,OSAgnosticPathUtil.expandUserHome, only exists from 2025.3, so LSP4IJ needs its own implementation, as The lookup of a command calls PathEnvironmentVariableUtil.findInPath, which IntelliJ 2026.3 schedules for removal #1927 did forfindInPath. Small. See DAP: the expansion of ~ in a run configuration's paths uses FileUtil.expandUserHome, which IntelliJ 2025.3 schedules for removal #2327. Done in fix: a DAP run configuration expands ~ in its paths without FileUtil.expandUserHome, which IntelliJ 2025.3 schedules for removal #2329, withDAPRunConfigurationOptions.expandUserHome, which does what both do.
Needs a newer minimum version, or reflection
-
Key.findKeyByName(String), deprecated, used by fix: LSP4IJ uses no internal IntelliJ API, which the Marketplace verification of the nightly build reported #2276 (6 internal API usages #2274) inConnectDocumentToLanguageServerSetupParticipant.isClosingToReopento find the platform'sCLOSING_TO_REOPENkey:FileEditorManagerImpl.CLOSING_TO_REOPENis internal on every version, and the publicFileEditorManagerKeys.CLOSING_TO_REOPENonly exists from 2024.3. UseFileEditorManagerKeysonce the minimum is 2024.3. Trivial then. -
ExtensionPointName.addExtensionPointListener(ExtensionPointListener, Disposable), deprecated from 2025.3, used by fix: LSP4IJ uses no internal IntelliJ API, which the Marketplace verification of the nightly build reported #2276 (6 internal API usages #2274) inLanguageServersRegistryandServerInstallerManager.ExtensionPoint.addExtensionPointListener(CoroutineScope, boolean, ExtensionPointListener)is public and not deprecated, but only exists from 2025.2. Small once the minimum is 2025.2; the listeners must still end when the service is disposed. -
CompletionConfidence.shouldSkipAutopopup(PsiElement, PsiFile, int), deprecated in 2024.3. Use the variant with anEditor, from 2024.3. InLSPCompletionConfidence. Trivial once the minimum is 2024.3. -
InlayActionHandler.handleClick(Editor, InlayActionPayload), deprecated in 2024.3. UsehandleClick(EditorMouseEvent, InlayActionPayload), from 2024.3. InLSPDeclarativeInlayActionHandler. Trivial once the minimum is 2024.3. -
FileSaverDescriptor(String, String, String...), deprecated in 2025.1. UseFileSaverDescriptor(String, String)withwithExtensionFilter(...), from 2025.1. InExportServerAction. Trivial once the minimum is 2025.1. -
TextMateHighlightingLexer(TextMateLanguageDescriptor, int), deprecated in 2025.1. Use the constructor with aTextMateSyntaxMatcher, from 2025.1. Needs work: the matcher is built differently in 2025.2 and 2025.3. InTextMateHighlighterHelper. -
ActionUtil.invokeAction(AnAction, DataContext, String, InputEvent, Runnable), deprecated in 2024.3.- Its first replacement,
invokeAction(AnAction, AnActionEvent, Runnable), from 2024.3, is itself deprecated in 2025.2, in favor ofperformAction(AnAction, AnActionEvent). - Small once the minimum is 2025.2. In
CommandExecutorandTriggerCommandAction.
- Its first replacement,
-
XDropFrameHandler.canDrop(XStackFrame), deprecated in 2025.2. UsecanDropFrame(XStackFrame), which returnsThreeState, from 2025.2. InDAPDropFrameHandler. Trivial once the minimum is 2025.2. -
XSmartStepIntoHandler.getPopupTitle(XSourcePosition), deprecated in 2025.2. UsegetPopupTitle(), which LSP4IJ already implements. The override has to stay while the old method is abstract, before 2025.2. InDAPSmartStepIntoHandler. Trivial once the minimum is 2025.2. -
DaemonCodeAnalyzer.restart(PsiFile), deprecated in 2025.3. Userestart(PsiFile, Object reason), from 2025.3. InLSPFileSupport. Small, with reflection. -
TerminalToolWindowManager.createShellWidget(...), deprecated in 2026.1. UseTerminalToolWindowTabsManager.createTabBuilder(), from 2025.3,@Experimental. Needs work: it gives a different terminal view than theShellTerminalWidgetthat LSP4IJ runs the command in. InRunInIntegratedTerminalService. -
XDebugSession.getRunContentDescriptor()andXDebuggerManager.startSession(ExecutionEnvironment, XDebugProcessStarter), deprecated in 2026.1. UseXSessionStartedResult.getRunContentDescriptor()andnewSessionBuilder(...)...startSession(), from 2026.1,@Experimental.DAPDebugRunneralready uses the new API through reflection when it exists, and the verifier only flags the fallback for older versions. Nothing to do until the minimum is 2026.1. -
EnvironmentVariablesComponent(), deprecated in 2026.2. UseEnvironmentVariablesComponent(Project), from 2026.2. InLanguageServerPanelandDebugAdapterServerPanel. Small, with reflection. -
FileEditorManager.openFile(VirtualFile, boolean)andopenTextEditor(OpenFileDescriptor, boolean), deprecated in 2026.3.- Replacements:
requestOpenFileandrequestOpenTextEditor, with aFileEditorOpenRequest, which open asynchronously, from 2026.3. - Needs work:
LSPIJUtils.doOpenInEditoruses the result synchronously. - A trap:
requestOpenFile(VirtualFile)returnsvoidin 2024.2 and aCompletableFuturein 2026.3, so a call compiled against 2024.2 fails withNoSuchMethodErroron 2026.3.
- Replacements:
Raising the minimum from 2024.2 to 2025.2 would make seven of these possible: the first six, plus XSmartStepIntoHandler.
No replacement
InlayProviderSettingsModel.getMainCheckBoxLabel(), deprecated in 2024.1 or earlier as "Not used in new UI". It's still abstract, so LSP4IJ has to implement it as long as it extendsInlayProviderSettingsModel.
Experimental APIs
The verifier also reports 75 experimental IntelliJ APIs. They usually have no stable replacement, so they're listed by area rather than one by one:
- inlay hints: 39, such as
ImmediateConfigurable,InlayHintsSink,NoSettingsandInlayPresentation; - Code Vision: 8;
- the debugger: 9, such as
XAlternativeSourceHandlerandXDebugProcess; com.intellij.platform.backend: 4;PointerandSymbol: 5;- documentation: 3;
- others: about 7.
The other 50 experimental APIs in the report are LSP4IJ's own, flagged where LSP4IJ itself uses them, and need nothing.
Activity
chore: replace the deprecated IntelliJ APIs that have a replacement i…
chore: replace three more deprecated IntelliJ APIs of #1971 (#2040)
chore: replace three more deprecated APIs of #1971 (#2088)
fix: a file whose editor moves to another window stays open in its la…
fix: no internal IntelliJ API to tell that an editor closes to reopen
fix: an installer that strips the root folder deletes what it replace…
chore: no deprecated PluginDescriptor.getClassLoader() to read the la…
fix: LSP4IJ's Enter between braces applies only to the files of langu…