Repository navigation
Conversation
…r#1971 Part of redhat-developer#1971. - `Document.addDocumentListener(DocumentListener)`: `JsonTextField` adds its listener, and lets others add theirs, with `EditorTextField.addDocumentListener`, which needs no `Disposable` and keeps the listener on a document that the field gets later. `DebugAdapterServerPanel` adds the listener of its attach configuration that way: its three owners dispose it with a direct call of `dispose()`, not through the `Disposer`, so it couldn't be the parent of the listener. - `PluginDescriptor.getClassLoader()`: `ServerExtensionPointBean` and `DebugAdapterServerExtensionPointBean` call `getPluginClassLoader()`, with the fallback that `getClassLoader()` has in 2024.2 and 2026.3, the class loader of the descriptor's class. Not here, and left in redhat-developer#1971: - `InspectionOptionsPanel` in `AbstractDelegateInspectionWithExclusions`, which Quarkus Tools and Liberty Tools extend: an options pane would bind `excludeList` by name, which needs testing with them. - `JarUriConverter`'s `new URL(uri)`: `URI.create` rejects unencoded characters that `new URL` accepts. Test: `JsonTextFieldTest` (new) checks that the validation handlers and the document listeners of the field hear of each change of its document. It and the settings and extension tests pass (42 tests). The change compiles against 2024.2 and 2026.3.
This was referenced Nov 20, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2040 +/- ##
==========================================
- Coverage 49.43% 49.41% -0.02%
==========================================
Files 813 813
Lines 33324 33330 +6
Branches 6848 6848
==========================================
- Hits 16473 16470 -3
- Misses 14278 14285 +7
- Partials 2573 2575 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
…nguage servers of IntelliJ's settings The plugin verifier reports `PluginDescriptor.getClassLoader()` as deprecated on 2026.1 and later (and experimental on all the supported versions), from `JetBrainsLanguageServers.getClassLoaderOfPage`, which loads the settings service of IntelliJ's Language Servers page for the warning of a file that both clients serve (#2077). It now does as #2040 did in `ServerExtensionPointBean` and `DebugAdapterServerExtensionPointBean`: `getPluginClassLoader()`, or else the class loader of the descriptor's class, which is what the default `getClassLoader()` returns on all the supported versions. `getPluginClassLoader()` is public on 2024.2 to 2026.3, and neither internal, experimental, deprecated nor scheduled for removal on any of them. `JetBrainsLanguageServersTest.testTheServersAreReadThroughTheSettingsPage` covers it: with no class loader for the page, it fails. Part of #1971
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #1971.
Document.addDocumentListener(DocumentListener):JsonTextFieldaddsits listener, and lets others add theirs, with
EditorTextField.addDocumentListener, which needs noDisposableandkeeps the listener on a document that the field gets later.
DebugAdapterServerPaneladds the listener of its attachconfiguration that way: its three owners dispose it with a direct
call of
dispose(), not through theDisposer, so it couldn't be theparent of the listener.
PluginDescriptor.getClassLoader():ServerExtensionPointBeanandDebugAdapterServerExtensionPointBeancallgetPluginClassLoader(),with the fallback that
getClassLoader()has in 2024.2 and 2026.3, theclass loader of the descriptor's class.
Not here, and left in #1971:
InspectionOptionsPanelinAbstractDelegateInspectionWithExclusions,which Quarkus Tools and Liberty Tools extend: an options pane would
bind
excludeListby name, which needs testing with them.JarUriConverter'snew URL(uri):URI.createrejects unencodedcharacters that
new URLaccepts.Test:
JsonTextFieldTest(new) checks that the validation handlers andthe document listeners of the field hear of each change of its document.
It and the settings and extension tests pass (42 tests). The change
compiles against 2024.2 and 2026.3.