Commit Graph

22137 Commits

Author SHA1 Message Date
Evgeniy.Stepanov
6bbd450ec7 [ui] Support navigation by highlighter severity, see IJ-CR-131982
GitOrigin-RevId: 22b9c4ae1533feba81e9c138f177aacc956df891
2024-05-02 12:51:19 +00:00
Tagir Valeev
cebdcda899 [java-intentions] DefineParamsDefaultValueAction: fix cast for vararg type
GitOrigin-RevId: 09705b6a78f4f07c0f62c5642ccd23853b2ba7f8
2024-05-02 11:33:05 +00:00
Tagir Valeev
860bc0e5e7 [java-intentions] DefineParamsDefaultValueAction: add cast by default when ambiguous overloads are present
GitOrigin-RevId: 10d5c9f66fa5bef5ab5e5be71987d14757fd07e2
2024-04-30 16:09:51 +00:00
Frederik Haselmeier
90b13286e8 [Kotlin] Ensure Kotlin classes appear before Java classes with the same name in completion
- This commit changes the JavaInheritanceWeigher to return false in case a non-Java class is encountered. Otherwise, all non-Java classes will always be deprioritized by it.
- Added a proximity weigher to ensure packages in kotlinx.datetime are preferred over their Java counterparts.
- Added a tie-breaker weigher that prefers Kotlin classes over Java classes if everything else is equal



^KTIJ-16682 fixed
^KTIJ-28902 fixed


Merge-request: IJ-MR-132454
Merged-by: Frederik Haselmeier <Frederik.Haselmeier@jetbrains.com>

GitOrigin-RevId: d7eb754424f1add70a2150912d611396f2387a28
2024-04-29 22:10:02 +00:00
Mikhail Pyltsin
63bef6eeac [java-completion] IDEA-352185 Support JEP 455: completion for primitives in patterns
- primitives after `instanceof`
- primitives after `case`
- primitives in deconstruction records

GitOrigin-RevId: c8ce9747b55605ab73be338d80b42fba41008220
2024-04-29 21:17:42 +00:00
Vladimir Krivosheev
9e23996158 IJPL-148294 extract vcs functionality from java plugin to separate modules (so, for example, SH tests can be executed without VCS)
GitOrigin-RevId: f19565ca367bc668cefaafde0dc2209c5b2c3eba
2024-04-29 15:45:33 +00:00
Georgii Ustinov
ef0255c10d [Java. Logging] Add javadoc for some methods LoggingArgumentSymbolReferenceProvider.kt and rename DefUsage to PsiElementUsage
IDEA-342484

GitOrigin-RevId: e40968673369c6b796f4a71dce087561bc7aad95
2024-04-29 15:27:06 +00:00
Mikhail Pyltsin
71ddef194d [java-completion] IJ-CR-132195 IDEA-352368 Completion in deconstruction patterns
- refactoring
- added comments

GitOrigin-RevId: b3b62ae369e60023caa070e1a02cbc819a82bad5
2024-04-29 11:08:52 +00:00
Yuriy Artamonov
7701d9f017 [java] IDEA-352617 AcceptedLanguageLevelsSettings requests service from class init
GitOrigin-RevId: 073d47504156d96f01e1068d0123d897ae202625
2024-04-27 22:43:56 +00:00
Konstantin Ulitin
5272ba67b2 [js] WEB-66873 Remove support for Mozilla's ancient JS 1.8
GitOrigin-RevId: 601d6a47668f524d130cb7f25ffbc632e1e01f97
2024-04-27 01:08:28 +00:00
Louis Vignier
6915f4dea6 [javadoc] Show type parameters in method javadoc
#IDEA-305114 Fixed

GitOrigin-RevId: 3141d31b1d8bcf1f5e6333d5bf3f19b2cf4aca70
2024-04-26 19:56:21 +00:00
Louis Vignier
f2593c7a3d [javadoc] Add javadoc for type parameters
#IDEA-326131 Fixed

GitOrigin-RevId: 940612c4c8a335e1607c5db596e10fccb575ebea
2024-04-26 19:56:18 +00:00
Louis Vignier
a33d7253a0 [jdk] Add a checkbox in the settings to disable JDK updates
#IDEA-330415 Fixed

GitOrigin-RevId: f669e4e59832816fe5fb7d9107ca24dd03ed60b0
2024-04-26 19:56:08 +00:00
Louis Vignier
72ef770aff [javadoc] Add a test for JavaDocExternalFilter reference conversion
GitOrigin-RevId: 61bc364b81230a8bc9307ec1e7112b3797eea423
2024-04-26 19:55:55 +00:00
Louis Vignier
910c9291bd [javadoc] Fix relative url generation in JavaDocExternalFilter
GitOrigin-RevId: 708388869d782e737107d6ccf443b9aedb3cdf6f
2024-04-26 19:55:51 +00:00
Kurt Dresner
63e70e2860 [javadoc] Use decoded form instead of external form for URLs
We currently call .toString() on these URLs when converting.
This causes the '#' character (amongst others) to be escaped.
This causes those URLs to not work properly. Because these were
already part of HTML content, we don't need to worry about
re-escaping the URL contents.

closes https://github.com/JetBrains/intellij-community/pull/2706

Signed-off-by: Kurt Dresner <kdresner@google.com>

GitOrigin-RevId: 3b794048229155a470940ded40e3948881b1084c
2024-04-26 19:55:48 +00:00
Georgii Ustinov
1486f7144b [Java. Code Formatting] Add tests for AdjustWhitespaceLineTextBlockReformatPostProcessor + fix old ones
IDEA-271085

GitOrigin-RevId: cfa961cba18cede97ebd81358526757886fd7861
2024-04-26 14:51:14 +00:00
Georgii Ustinov
24302549fa [Java. Code Formatting] Add support to format with tab characters to the AdjustWhitespaceLineTextBlockProcessor
IDEA-271085

GitOrigin-RevId: 921793d41b090a82c357a1d01cc8780fc5820655
2024-04-26 14:51:10 +00:00
Georgii Ustinov
1aa9d5f3bf [Java. Code Formatting] Implement basic functionality for AdjustWhitespaceLineTextBlockProcessor
IDEA-271085

GitOrigin-RevId: 1c107f65b67453d7bd3ebe89727e53d58526ee96
2024-04-26 14:51:07 +00:00
Tagir Valeev
5f8845c2b3 [java-intentions] ChangeMethodSignatureFromUsageFix: remove unused method
GitOrigin-RevId: 6d456eaa3e5fa9f3756d497adea11f1494322e00
2024-04-26 14:23:08 +00:00
Tagir Valeev
cac70088d2 [java-inspection] UnusedDeclarationPresentation: fix wrong condition
GitOrigin-RevId: d2161bafe0ab66a02a2ed7dd58758070fc3b09e5
2024-04-26 09:44:39 +00:00
Tagir Valeev
7114175e5e [java-completion] Complete module keyword at the beginning of module-info.java
GitOrigin-RevId: 2181096e05dc21622c119a8c5b783c6d07da259e
2024-04-26 09:11:01 +00:00
Bas Leijdekkers
5a7449d17c java: fix global unused declaration inspection suppression (IDEA-256471)
GitOrigin-RevId: 5764b1db0c2d1acd5fb4574af04a3510ccb26448
2024-04-25 13:49:38 +00:00
Tagir Valeev
514e918516 [java-intentions] DefineParamsDefaultValueAction: do not copy @Override annotation
GitOrigin-RevId: ca02de483aeeab6e7a516a839edda6cae1515195
2024-04-25 13:12:13 +00:00
Anna Kozlova
571c236482 [kotlin] k2 change signature: don't take kotlin new name for java change signature iff @JvmName is specified
^KTIJ-28226 fixed

GitOrigin-RevId: 0d615a3abc89eadf72949f0a90de3ce964a5064d
2024-04-25 12:27:38 +00:00
Elena Shaverdova
440989e665 Deprecate unused FileBasedIndex.isIndexAccessDuringDumbModeEnabled
GitOrigin-RevId: 26cfedfbb09fff333ae695a045c88f319ce44971
2024-04-24 21:55:17 +00:00
Nikolay Chashnikov
b966d0247f [xml dom] cleanup: mark 'ConvertContext' parameters in Converter interface and its implementations as @NotNull
Actually, 'null' value is never passed, but explicit annotation simplifies writing code in its implementations, especially in Kotlin code.

GitOrigin-RevId: 8059717d7259eb50a3ef68f2334b5f08c7e81b06
2024-04-24 11:44:31 +00:00
Mikhail Pyltsin
d3fbcebf68 [java-completion] IDEA-352368 Completion in deconstruction patterns
- support primitives
- support full list completion
- support generics

GitOrigin-RevId: 6f23ded8b5659c6987790386f6da5a9526eb6f47
2024-04-23 13:19:15 +00:00
Tagir Valeev
384b59db83 [java-inspections] UnreachableCode.html: correct wording
GitOrigin-RevId: 84e25a7b59fbb8e7fe19bd4dcaae9954270f68d1
2024-04-23 12:17:05 +00:00
Tagir Valeev
c2f7be4f76 [java-completion] JavaGenerateMemberCompletionContributor: avoid cleanup of invalid elements
GitOrigin-RevId: b967fc372da6fbbb2dab9cd5cc249b074f51cf43
2024-04-23 09:43:56 +00:00
Tagir Valeev
9b95ac26a6 [java-completion] Improved package/import keyword completion after implicit classes introduction
GitOrigin-RevId: e6a400381541c51cea6bf1408c8dc297f73e662c
2024-04-23 09:43:52 +00:00
Bas Leijdekkers
8f32c2551d java: avoid duplicate deadcode reports
GitOrigin-RevId: 4c9833e1adc9182906c9f0797fbeb370100f52c4
2024-04-22 23:28:00 +00:00
Bas Leijdekkers
4c7002e81c java: fix deadcode tests
GitOrigin-RevId: 8d170f38638a45e7a4304894e218ff0fbc02d8d9
2024-04-22 23:27:57 +00:00
Bas Leijdekkers
e433471960 java: escape package name to avoid breaking html (IJPL-25507)
GitOrigin-RevId: 252d7542d2415b6480494dd3ef90615a741d0793
2024-04-22 23:27:40 +00:00
Bas Leijdekkers
de063f393b java: don't report implicit constructors as unused
also report kotlin code again

GitOrigin-RevId: 765fe96b65f15194ac8d3cfaa576b46202a9f6ca
2024-04-22 23:27:37 +00:00
Tagir Valeev
f2d83d754b [javadoc] JavaDocumentationProvider: no external URL for implicit classes with package statement
GitOrigin-RevId: 925741861a67d89cdadb3d0635fa47af38fa9b89
2024-04-22 19:34:08 +00:00
Tagir Valeev
11097530d4 [java-intentions] Remove outdated MoveMemberIntoClassFix.java
Superseded by MoveMemberIntoClassFix.java

GitOrigin-RevId: cc3a29aa7089f91ff5c13a61e722c0ad3843985e
2024-04-22 19:34:03 +00:00
Dmitry Batrak
881b370b95 RDCT-1092 Hotkeys are displayed incorrectly in popups on different OS
replace SystemInfo.isMac with ClientSystemInfo.isMac() in keyboard-shortcuts-related code

GitOrigin-RevId: 640604dff8e09d1aeccd0edc156873dd63c09fea
2024-04-22 19:16:22 +00:00
Tagir Valeev
a9c502e8d3 [java-inspections] IDEA-352283 Turn off Unreachable code inspection by default
GitOrigin-RevId: 0d88d38267fdc2692a22f3314fa0842028611456
2024-04-22 12:55:39 +00:00
Tagir Valeev
6f1f6ef6f8 [java-completion] Fix: 'import' keyword is not suggested at the beginning of the last import statement due to implicit class parsing
GitOrigin-RevId: 7d1e41bff95099ba855fb0ee0bd47aae66695ea7
2024-04-22 12:55:32 +00:00
Tagir Valeev
004677318e [java-inspections] UnreachableCode.html: describe failing contract inference situation
GitOrigin-RevId: 05090bb1d4926673269cdee27d75cc604838f320
2024-04-22 11:00:48 +00:00
Yuriy Artamonov
ed4b509b66 [java] IDEA-341622 Better cache NullableNotNullManager#findEffectiveNullabilityInfo for library methods
GitOrigin-RevId: ecc23faa48a12ae14ad91be62d0a2216eca74e7a
2024-04-21 17:28:15 +00:00
Egor Ushakov
2a749b733a [kotlin debugger] do not replace the whole coroutine stack with async, only replace the required parts
GitOrigin-RevId: 8748e30421545e44464f3dd490ba87d85911744a
2024-04-21 11:14:49 +00:00
Roman Shevchenko
76aabae33e Cleanup (typos; formatting)
GitOrigin-RevId: f88e1dbc46a5cb25603323196a4d422ec475489d
2024-04-19 22:18:14 +00:00
Yuriy Artamonov
f41a7c4dc9 [plugins] IJPL-148474 Use non-blocking read action to collect libraries in DependencyCollector
GitOrigin-RevId: c5b597fada22aa0e5fac524c57d5b6051e27804b
2024-04-19 20:19:19 +00:00
Daniil Tsarev
9d2a1a6d3c [jakarta] Collect Jakarta MVC package usages
GitOrigin-RevId: e7d11d7b9c29e040ef12741766feca89b1f6751e
2024-04-19 20:05:38 +00:00
Tagir Valeev
053d59f113 [java-psi] Move JavaLexer utility methods to PsiUtil to make them accessible from java-psi-api
GitOrigin-RevId: 88a728c1d021f703dc9f882e1f9213cd8477ed7a
2024-04-19 17:41:51 +00:00
Denis Zaichenko
321a940823 IDEA-22318 Merge VCS conflicts in "import" statements
GitOrigin-RevId: 6a228e8d5d16637cdcf53369a2818cda014e9214
2024-04-19 17:09:23 +00:00
Konstantin Aleev
a08ef89ea9 [spring] IDEA-351807 track spring-modulith usage by api annotation presence
GitOrigin-RevId: 9931423f09f323d11974c6205982b31985a83073
2024-04-19 15:21:49 +00:00
Konstantin Aleev
a6136f06af [graphql] IDEA-340121 collect graphql-dgs usage statistics
GitOrigin-RevId: be7a336d2aa0c33cd032fa4598b4c0e90f409a74
2024-04-19 15:21:44 +00:00