Alexey Kudravtsev
b7e62ca44a
fix incorrect assertions, cleanup
...
GitOrigin-RevId: a24d7f7b859c58c4932519d69d6ec04e294aa630
2024-08-13 15:05:29 +00:00
Mathias Boulay
3825899d51
feat(IDEA-353092): early markdown jdoc support
...
GitOrigin-RevId: 8c02012551f1a97d3f5d6aed021889911b138b28
2024-08-13 11:44:06 +00:00
Louis Vignier
6a4b505aaf
[java-property-tests] JavaCommentingStrategy: exclude "Replace 'catch' section with 'throws' declaration"
...
GitOrigin-RevId: 02364c18ae5c839ec019bd33d9f73c814459eed0
2024-08-13 09:54:17 +00:00
Louis Vignier
a19d6804d9
[java-property-tests] Wait for coroutines in inlineExtractMethodCompilation
...
When extracting, previous changes might have been reverted, causing the test to fail.
GitOrigin-RevId: e669792210ba96f15e1f1f3ef14aacd5afd2fede
2024-08-13 09:54:17 +00:00
Louis Vignier
9e43abe887
[ui] Set initial caret position to 0 in VM options
...
IJ-CR-140588
GitOrigin-RevId: 8cb6554e403485d6241ce4733052b2b1a7f65957
2024-08-13 09:54:17 +00:00
Mikhail Pyltsin
d8b8f63677
[java-inspections] IDEA-356745 False positive 'Incorrect 'MessageFormat' pattern' when argument is array
...
GitOrigin-RevId: 75b8f2d944f05ab124e0b1ac340383dcc240b885
2024-08-12 20:28:37 +00:00
Bas Leijdekkers
21d8008ff1
Java: don't break indentation of element after javadoc comment when converting to markdown
...
GitOrigin-RevId: df6e25727b13fe229531eb2636dcfafa9cb8a175
2024-08-12 17:37:07 +00:00
Bas Leijdekkers
426cda83e6
Java: support xhtml self-closing tags
...
GitOrigin-RevId: 97e23cb2054fc721e57a2017b952f35351675220
2024-08-12 13:37:26 +00:00
Alexey Kudravtsev
62b88e8fe3
fix fileStatusMap.getCompositeDocumentDirtyRange() optimization which sometimes returned whole file always
...
GitOrigin-RevId: af444762564d2fe8fe3d6915db7fa35861546657
2024-08-12 13:10:04 +00:00
Alexey Kudravtsev
c806c607c9
IJPL-159317 IDE highlights syntax in the comment
...
rework the HighlightInfoUpdater to avoid obsolete error elements stuck in the markup
The problem was in the several highlighting sessions overlapping each other when the one session was canceled but still lingered on while the other started and progressed far enough.
The two sessions called setHighlightersInRange() in HighlightInfoUpdater in reentrant fashion which could lead to some highlighters to be forgotten by HighlightInfoUpdater internal data structures. The fix is to refactor HighlightInfoUpdater to guarantee that the highlighters registered there are always contained in the markup and vice versa.
Several testcases added to DaemonRespondToChangesTest where the test invokes typing, then waits for the daemon to start, then proceed to another typing, effectively canceling the daemon process very frequently to induce the session overlappings and then checking that no error element highlighters are left in the markup
GitOrigin-RevId: 9b72068d71b28d940c3e9fdb98574c78e4776800
2024-08-12 11:27:32 +00:00
Alexandr Suhinin
13a49ea232
[extract method] decouple settings from the extract template
...
GitOrigin-RevId: a628ca0ecfa302e9920c315e7adacc14471b6053
2024-08-12 09:29:26 +00:00
Max Medvedev
70c0a3c550
IJPL-574 run inspections in dumb mode
...
GitOrigin-RevId: 303e9eb0d08645854be047d2630add0b7ed04be2
2024-08-09 20:25:06 +00:00
Max Medvedev
c0f11e5298
HighlightDisplayKey: introduce proper getShortName instead of toString
...
GitOrigin-RevId: 7c6fb37449dbebb6308c3d76f4cbb48bb3cc1392
2024-08-09 20:25:06 +00:00
Bas Leijdekkers
1c2887a09c
Java: basic support for headings when converting Javadoc to Markdown
...
GitOrigin-RevId: 0b8d1dcfa1324ff783a9b412b6fb330bbc6b0646
2024-08-09 11:14:15 +00:00
Bas Leijdekkers
ebbf5a1d20
Java: fix <br> support when converting Javadoc to Markdown
...
GitOrigin-RevId: d85489271ee65ff043f039eda4bfa82f8e50db77
2024-08-09 11:14:15 +00:00
Mikhail Pyltsin
cb37003541
[java-inspections] IDEA-357323 Propose case null during adding all cases
...
GitOrigin-RevId: 6d7ffccc28d64ed0f52db0235c41796d1d81284e
2024-08-09 11:00:42 +00:00
Mikhail Pyltsin
0f5aa949cb
[java-inspections] IDEA-357190 Support JEP477 - Remove unnecessary qualification is not suggested when it can be
...
- check if class is already imported
GitOrigin-RevId: 11a43bf80302194a4f8b34125de2bb741f1f3bac
2024-08-09 11:00:42 +00:00
Bas Leijdekkers
91cff4a4f1
Java: inspection for migration to Markdown documentation comments (IDEA-357191)
...
GitOrigin-RevId: 94d6c21d713073df58e2f6fb2bbd348a7039b9ce
2024-08-08 20:19:46 +00:00
Alexey Kudravtsev
7e84bf94d4
highlighting: pass toolId correctly to HighlightInfos from various sources
...
GitOrigin-RevId: 43afc5944671ad1eb211a29269e008613722b8c7
2024-08-08 14:23:57 +00:00
Alexey Kudravtsev
4045e43368
encapsulate and make structured RedBlackTree.VERIFY, DebugUtil.CHECK
...
GitOrigin-RevId: ffc073d412e94e91874f00f46c1f451272e778b4
2024-08-08 10:30:54 +00:00
Mikhail Pyltsin
f1eb1a3c67
[java] IDEA-357289 Run gutters stop working in dumb mode
...
GitOrigin-RevId: da4ffa069933bab51d722dd65266e2939f58daf3
2024-08-07 19:52:49 +00:00
Gregory.Shrago
c98b16d7a2
migrate non-typesafe getData: community
...
GitOrigin-RevId: 9925045d5302a768b5f57d9f965c96c631d14114
2024-08-07 02:37:34 +00:00
Aleksey Dobrynin
24f3b86d83
[java, highlighting, import-module] Check access module names for Module Import Declarations IDEA-356710
...
IJ-CR-141484
GitOrigin-RevId: aa63518be14907a230b0ca92189df6e552da36c5
2024-08-06 18:46:57 +00:00
Aleksey Dobrynin
2616038ffc
[java, import-module] resolve "import module" jep 476 IDEA-355535
...
IJ-CR-140196
GitOrigin-RevId: 3c445405dbab1dcbb84050ce2353a03a8ce100aa
2024-08-06 14:50:39 +00:00
Bas Leijdekkers
4426c2fc85
Java: create field from parameter with method type parameter type correctly (IDEA-357162)
...
GitOrigin-RevId: 3a9947fa58b394f0e0b5377fbe75702f3d4b8f6a
2024-08-06 10:48:28 +00:00
Bas Leijdekkers
24aaef624d
Java: fix false positive on reference to enum constant (IDEA-357156)
...
GitOrigin-RevId: 7c833e46823ab41c9bdf275308ccee226d7e1a5f
2024-08-06 10:48:28 +00:00
Bas Leijdekkers
5c96c794ed
Java: fix one more case where "invert if" loses comment (IDEA-252033)
...
GitOrigin-RevId: 8bba0c15ca98a31a29ffc8a0d46effca9d96d27f
2024-08-06 10:48:28 +00:00
Bas Leijdekkers
e39764dd13
Java: allow "invert if" in more places and cases
...
GitOrigin-RevId: f3d942d13ed72b7f94e189bb9d155b64c4603a97
2024-08-06 10:48:28 +00:00
Bas Leijdekkers
d335ac32c4
Java: parse parentheses with a call with lambda argument correctly (IDEA-200212)
...
GitOrigin-RevId: 98fcbb3b793ebfcfa636ac7d27ef21158c64eee7
2024-08-04 12:09:09 +00:00
Mikhail Pyltsin
6b7ef5d3e1
[java-intentions] IDEA-357080 Convert switch to if with boolean selector: omit second condition
...
GitOrigin-RevId: 77851a64e022155488fcc45b2fc15791c61fedce
2024-08-02 22:53:47 +00:00
Mikhail Pyltsin
d3b39b27a9
[java-inspection] IDEA-357079 Convert switch expression to old style switch with boolean selector: do not add default branch
...
GitOrigin-RevId: c02a9cd74b36adbf1e46c012cce3ef4c490c4eb9
2024-08-02 22:53:47 +00:00
Mikhail Pyltsin
e9fdbf0b00
IJ-CR-141547 [java-inspections] IDEA-356841 Convert to switch expression generates invalid code on line comments
...
- support comments in the middle
GitOrigin-RevId: a56684193791a8dfc086843756796d0cbd5cf571
2024-08-02 18:19:13 +00:00
Aleksey Dobrynin
ab45ebd22f
[java, complete, import-module] enhance code completion ordering: support transitive dependencies and implicit imports
...
GitOrigin-RevId: 737e01da30f0619ecae83693062e8b22adb5f6f3
2024-08-02 16:06:21 +00:00
Tagir Valeev
655bf65a7d
[java-refactoring] Inline variable: ignore references from method calls
...
Fixes IDEA-356914 Exception in Inline variable on red code
GitOrigin-RevId: ca785f72ba4b99fed0a0f3410a21df7dd13b7c5a
2024-08-02 14:18:00 +00:00
Tagir Valeev
eafd66854b
[java-stubs] TypeInfo: fix annotation parsing for multi-parameter generic types (IDEA-356112)
...
GitOrigin-RevId: 154294caab47747e81b80de26ca1bffd919fce98
2024-08-02 14:18:00 +00:00
Vladimir Krivosheev
696f7393dd
IJPL-159035 SpotlightPainter - get rid of MergingUpdateQueue
...
GitOrigin-RevId: 5f6c5c4cc41aec3d829284ca4a511e6c6696ceb1
2024-08-01 23:00:42 +00:00
Mikhail Pyltsin
ccf2a6bae5
[java-inspections] IDEA-356982 PsiImplicitClass is created for certain invalid code and renders the whole file gray
...
- skip implicit classes in unused analysis
GitOrigin-RevId: 6eb880108723b3623b0cc449d76f9f87942fc8b7
2024-08-01 16:00:34 +00:00
Bas Leijdekkers
c72b96d481
Java: enable Pratt parser by default (IDEA-305898)
...
GitOrigin-RevId: 597cfc30aeff88a7791e9e185b5c08426844d4da
2024-08-01 12:35:28 +00:00
Bas Leijdekkers
c8215f8fbc
Java: more sensible parse of incomplete binary expression (IDEA-305898)
...
GitOrigin-RevId: 3d3b59be1621fea7a4702109e1d654b47c5c76f7
2024-08-01 12:35:28 +00:00
Bas Leijdekkers
bc91c92493
Java: remove broken code from test data (IDEA-305898)
...
GitOrigin-RevId: 82874c8bb5b89e0a18ca77582b61d6836c021379
2024-08-01 12:35:28 +00:00
Bas Leijdekkers
c122a5897f
Java: remove heavily broken code from test data(IDEA-305898)
...
GitOrigin-RevId: 4bffa1842be6eaa4e9a48b8b5ee0ec381a6ff93f
2024-08-01 12:35:28 +00:00
Mikhail Pyltsin
4a9f1b4fee
[java-inspections] IDEA-356945 'insert default branch' suggests uncompilable code
...
GitOrigin-RevId: 44f277da31601775e3ce75021155bf7c37a6311c
2024-08-01 12:29:33 +00:00
Mikhail Pyltsin
1c6e73ad39
[java-inspections] IDEA-356841 Convert to switch expression generates invalid code on line comments
...
GitOrigin-RevId: 840ad7d5fe656b7cc443b67df30f60b0bb35b41d
2024-08-01 12:29:33 +00:00
Aleksey Dobrynin
44e14f0283
[java, highlighting, import-module] Check access module names for Module Import Declarations DEA-356710
...
GitOrigin-RevId: 819c182488bd0b4aeffb8518373da35aabf311ca
2024-07-31 17:00:00 +00:00
Aleksey Dobrynin
85c104a858
[java, complete, import-module] Check access module names for Module Import Declarations DEA-356710
...
GitOrigin-RevId: ef96cf46f062068539cc417a3e130172fd4b6132
2024-07-31 17:00:00 +00:00
Alexandr Suhinin
78b48990af
[extract method] test: fix extract recommender inspection
...
GitOrigin-RevId: 583f3ef6c77e17b6baa1f0643aafa69d8b900302
2024-07-31 14:26:46 +00:00
Alexandr Suhinin
f6db6a0ef8
[extract method] reduce time spent in EDT
...
GitOrigin-RevId: fe147367255483d73d51a5e56a294ec41582948f
2024-07-31 14:26:46 +00:00
Alexandr Suhinin
3e5384ad28
[extract method] move to coroutines (start)
...
GitOrigin-RevId: 092eee5b5501c1cab48e54a371a22ee198887af6
2024-07-31 14:26:46 +00:00
Alexandr Suhinin
ed6d7fbc6d
[extract method] IDEA-356707: simplify and speedup name suggestion
...
GitOrigin-RevId: 5a8baeec399127391f8e2069e6915f322c524458
2024-07-31 14:26:46 +00:00
Tagir Valeev
90543d0e24
[java-inspections] InlineVariableFix: avoid PSI writes after highlighting
...
Highlighting causes PSI commit and reformatting. It looks like modifying PSI after that may cause problems. Probably we can fix it later in ModCommand API, but for now we can just reorder things.
Fixes IDEA-355992 "Inline variable" quick-fix doesn't work if the variable initializer is on the next line
GitOrigin-RevId: f0a2418ac5618f91291b1f74ad2168d26c612447
2024-07-31 11:41:55 +00:00