Commit Graph

732 Commits

Author SHA1 Message Date
Bas Leijdekkers
68f89d5af4 RegExp: fix inspection dialog replacement label
GitOrigin-RevId: 5e558875ba39e9baf56e99ae6964dbc3dc93d53c
2023-10-27 19:31:29 +00:00
Tagir Valeev
bdf9fbcfd5 [regexp] Regexp plugin quick-fixes converted to ModCommand
GitOrigin-RevId: 9734abefacb311efc2ba9c42008da783e725458e
2023-10-27 18:19:28 +00:00
Louis Vignier
3ce785825d [regexp] Add RegExpAdvertiser
GitOrigin-RevId: b5e2f23b08579044dfc4e79526a5da89340a83ae
2023-10-26 16:47:12 +00:00
Louis Vignier
14259dc0e0 [codeInspection.ui] Decouple custom inspection logic from SSR plugin
#IDEA-335948 Fixed

GitOrigin-RevId: dff86a1b7edb287851590ea5d573362629dd8931
2023-10-26 16:47:09 +00:00
Yuriy Artamonov
c53774e2fc [inspections] IDEA-321711 Use optimized PsiElementVisitor implementations
GitOrigin-RevId: 18ebc32aec877f71cd185ee7072dd139c076e9a3
2023-09-16 15:18:22 +00:00
Bas Leijdekkers
4f0e33fc76 Regexp: fix running RegExpCompletionTest on jbr-21 (IDEA-327368)
GitOrigin-RevId: f969f589399a1c8b8c88cc50871ebd910435a4f0
2023-08-25 14:52:16 +00:00
Pavel Porvatov
edbf3b5222 [Kotlin UI DSL] Moving API into common platform place
GitOrigin-RevId: d1140b983c8944f3f768e1ab9ade93e31bb5dfa7
2023-08-18 10:51:27 +00:00
Piotr Tomiak
1d3e210cc4 LexerTestCase: add missing @NotNull annotations to improve interoperability with Kotlin
GitOrigin-RevId: e98b6523585f4659687abca687c8b42618dfd8bc
2023-07-13 10:11:07 +00:00
Bas Leijdekkers
71ebca1309 RegExp: remove redundant ObjectUtils.tryCast() call
GitOrigin-RevId: e1763e01ea638c5864ae2bba18d12453db4730b3
2023-06-26 16:29:00 +00:00
Alexey Belkov
c6138e8d67 Apply Kotlin inspection "Redundant semicolon"
GitOrigin-RevId: e97056ead03cff412fc10cee0d5fa2d4cc7dde30
2023-06-13 13:58:20 +00:00
Daniil Ovchinnikov
97f0a7fd3b migrate usages of ModalityState.NON_MODAL to ModalityState.nonModal
GitOrigin-RevId: fb4855bfa90dbf384fed24871e4b28ab803847bb
2023-06-09 21:58:50 +00:00
Bas Leijdekkers
112d27a018 RegExp: fix disposable already disposed problem (IDEA-320966, EA-848158)
GitOrigin-RevId: 18664e962952cecd56b12d4238baaf940e501e65
2023-05-25 13:56:09 +00:00
Vladimir Krivosheev
27028c3aa6 get rid of createDisposable
GitOrigin-RevId: 14e43ccef1179ae0436e63622be1a030375430d4
2023-05-16 10:33:14 +00:00
Vladimir Krivosheev
227d75a1fc don't extend DynamicBundle
GitOrigin-RevId: 49cbebd629a92877dbeeffba8d97b0631fb9407e
2023-05-05 09:46:42 +00:00
Vladimir Krivosheev
5754420093 remove deprecated ComponentManager.getPicoContainer
GitOrigin-RevId: bd40e0f4255fcdc014c2591cf3a93b6015ed26ff
2023-05-04 19:20:56 +00:00
Bas Leijdekkers
6352170061 Editing of Custom RegExp inspection should happen on a copy (IDEA-318426)
so that changes are not applied when cancelled

GitOrigin-RevId: b1b975edc24c5f452adb58b6ab1cff2b50ac5ed3
2023-04-20 11:48:02 +00:00
Bas Leijdekkers
3b7ea8c076 Allow user defined inspections to be cleanup inspections (IDEA-299455)
GitOrigin-RevId: 58616c5699a80f60b3fdbfcfaa2c88162112adad
2023-04-20 11:47:52 +00:00
Bas Leijdekkers
90833452bc Move InspectionMetaDataDialog to reusable location
GitOrigin-RevId: bc72757ec4a2763e252cb87862d3d11e5b69551a
2023-04-18 17:58:34 +00:00
Bas Leijdekkers
02b517002d Make custom RegExp inspection meta data dialog more generic to make it reusable
GitOrigin-RevId: 174520233d03405c5693ba3e1017e027cffa3cbe
2023-04-18 17:58:31 +00:00
Aydar Mukhametzyanov
86b9816655 IDEA-315372 Fix Gaps usages mixed with unscaled values
For example, mixed with SpacingConfiguration properties

GitOrigin-RevId: 2011306fb345e941396f2f007034b39d6c4119ab
2023-03-16 20:21:51 +00:00
Alexandr Evstigneev
2271eb1907 IDEA-313615 upgrade JFlex to 1.9.1
GitOrigin-RevId: 72933159ba8a1ae68d39a39a52be46214bb497c5
2023-03-11 11:18:03 +00:00
Alex Plate
350d635ff3 Update remaining usages of TreeSpeedSearch
GitOrigin-RevId: 87636623fa98b57d1c90425537ed1be10cfac883
2023-03-01 19:28:32 +00:00
Alexandr Evstigneev
2dc83a5165 IDEA-313615 Migration to jflex 1.9.0 [regen]
The only lexer not updated is ObjectiveC, because it is using hacky manual patching, see CPP-27237

IJ-CR-103186

GitOrigin-RevId: baf62050f2c4f3f7345c5553cb6b60bca3935ab8
2023-02-24 17:20:31 +00:00
Tagir Valeev
0892646cb9 Enhanced switch used
GitOrigin-RevId: cf148ceb6c09ad0a00d05475b55113ab36c7a0ac
2023-02-09 11:21:32 +00:00
Maria Filippova
61df548950 WI-62707 don't run inspection 'Duplicated char inside character class' when concatenated string can't be fully evaluated
GitOrigin-RevId: 7c7a1598996bc84511b79ed8e51ad0d24aaad339
2023-02-07 17:29:51 +00:00
Tagir Valeev
f456ed0604 Pattern variable can be used mass cleanup
GitOrigin-RevId: 55839bf0deca5f81d0f7eb5b1c190145a5ea0037
2023-02-07 13:58:20 +00:00
Bas Leijdekkers
7aa80aa0f3 RegExp: more reliable and safe serialization of inspections
GitOrigin-RevId: e3abe8b57986b72747f34e5cb31fae7227cece40
2023-01-23 19:28:17 +00:00
Bas Leijdekkers
6eb6d14019 RegExp: do not allow adding inspection with an existing name
GitOrigin-RevId: 63bf6ccc189cac5bd81c7b4f9eb7876f932b37de
2023-01-23 19:28:16 +00:00
Bas Leijdekkers
a344209553 RegExp: surround rendered regex with gray slashes
GitOrigin-RevId: eb1514d8bf84e1a4c0f459a3b9bc9fdf02a0dc93
2023-01-23 19:28:15 +00:00
Bas Leijdekkers
51b7d597cf RegExp: don't fail on parsing if file ends after a high surrogate character (EA-352432)
GitOrigin-RevId: ed171446eafcb6419e200d4317ce8f141a667d7c
2023-01-23 12:39:23 +00:00
Yuriy Artamonov
f464d039d4 [regexp] IDEA-311133 CheckRegExpForm class loaded without real need on first file opening
GitOrigin-RevId: aeb595ff5ad2cea63d6c3cfe9587194d3c22d31d
2023-01-21 22:06:02 +00:00
Nikolay Chashnikov
2cc08b84bd cleanup: remove redundant '@author' tags from javadoc comments - 13
Now we have Code Vision hints which determine the author via Git history and show it in the editor automatically, and this information is more accurate than the tags which were automatically added when files were created.

GitOrigin-RevId: 6b7b3f016410df7452da2bdf99ae16f505fb21c9
2023-01-18 17:02:07 +00:00
Bas Leijdekkers
62e1ecfb2e RegExp Search/Replace inspections: skip file type check if specified file type is <any> (IDEA-310662)
GitOrigin-RevId: 2bfa472a53e1cea065ad8f296743fa41e1bcdd38
2023-01-16 19:16:58 +00:00
Bas Leijdekkers
6ca53cec71 RegExp Search/Replace inspections: vfile is needed for string/comment filtering (IDEA-310665)
GitOrigin-RevId: 68c775570950c6472633d66a7b4280f50728deda
2023-01-16 19:16:57 +00:00
Bas Leijdekkers
1c2ba45599 RegExp Search/Replace inspection: minor optimization when no patterns specified
GitOrigin-RevId: 07442333808bce5d7b6ea6e3cb4f66306792854b
2023-01-16 19:16:55 +00:00
Bas Leijdekkers
2e64a53439 RegExp Search/Replace inspection: don't present fix when none is specified
GitOrigin-RevId: e67011097a48b312ff928f7f25c96e657ec201dc
2023-01-16 19:16:54 +00:00
Bas Leijdekkers
7ffb08b57d RegExp: highlight matching groups on gaining focus (not only on caret movement)
GitOrigin-RevId: 142074a24941b91c51b49710f4de04dcaab21312
2023-01-09 20:19:37 +00:00
Bas Leijdekkers
b0651337f9 RegExp: fall back to Java regex evaluation if JS is not available (IDEA-261269)
GitOrigin-RevId: 7997dfe4a0f74d4a304285a3c1e0b17585e5649d
2023-01-04 18:44:11 +00:00
Bas Leijdekkers
3e69177c43 RegExp: cleanup
GitOrigin-RevId: a3248e8d9c497faea40a3e00a78a4dc2aa504e4d
2023-01-04 18:44:09 +00:00
Alexey Kudravtsev
e82fbad633 performance: avoid annotating the same element twice
GitOrigin-RevId: b92094c8e247fc9ec48a165e5a163cd181048705
2022-12-21 14:07:41 +00:00
Alexey Kudravtsev
de4903662c injections: reduce visibility of shred impl
GitOrigin-RevId: 59924f923bafc0a0638ed623a78a8e5f27edbba9
2022-12-16 16:51:18 +00:00
Tagir Valeev
394fd38cb5 [inspections] Automatically convert createOptionsPanel() to getOptionsPane() in simple cases
GitOrigin-RevId: 8377376db858deac58eead81e92b286c1b099e10
2022-12-10 17:06:42 +00:00
Louis Vignier
18559d76c5 fixup! [regexp] Delete 'Open RegExp Dialog' action
GitOrigin-RevId: ca33cd5e887cc105a7d766b1d97da8b63d26781e
2022-11-30 12:48:34 +00:00
Louis Vignier
7fc8884fd4 [regexp] Delete 'Open RegExp Dialog' action
GitOrigin-RevId: fb4b1b88a2087cb175b2b50677d6bcc9206b5251
2022-11-30 01:53:24 +00:00
Louis Vignier
839640ae3c [regexp] Custom RegExp inspections
Co-authored-by: Louis Vignier <louis.vignier@jetbrains.com>
Co-authored-by: Bas Leijdekkers <bas@jetbrains.com>

GitOrigin-RevId: 025ad2acefe111b0e8d2111446a8190d6d28b965
2022-11-24 14:42:03 +00:00
Alexey Kudravtsev
a2192e09d5 cleanup
GitOrigin-RevId: fe9ee62f2f76c4b183515c6332a911858869044e
2022-11-23 13:38:55 +00:00
Alexandr Evstigneev
4ec1884774 IDEA-301618 allow descendants to remove the method from implementation
Binary compatible change, according to JLS 13.5.7 (jse17)

IJ-CR-97908

GitOrigin-RevId: 80f6dda292d500303467092966237ddb3d5a1eac
2022-11-19 07:59:37 +00:00
Andy Magee
a89ecd6615 [IDEA-301618] Indicate if an escaped character is in a class
GitOrigin-RevId: 114a8389adb9d0a64692b47573e886df6d379801
2022-10-05 19:06:26 +00:00
Bas Leijdekkers
80e45ca73f avoid unnecessary unicode escape warnings
GitOrigin-RevId: fc6a3de26e047c646fa068a220356a9ebd20150c
2022-10-01 14:21:20 +00:00
Bas Leijdekkers
64750c55f5 regexp: minor lexer cleanup
GitOrigin-RevId: b3f6dd8f723077be1efc6aa634800cceb01b76da
2022-09-30 13:04:53 +00:00