Bas Leijdekkers
a2425130fe
SSR: fix NPE when switching to replace with empty search template (IDEA-260919)
...
GitOrigin-RevId: d295a29907d0ea5a8715eebb0dce4df0f652750f
2021-02-02 08:53:58 +00:00
Tagir Valeev
ba4305a463
String.repeat used
...
GitOrigin-RevId: 33df64e10d10fdbeec3dff5fd2b6d1e10a993a0a
2021-01-28 05:40:21 +00:00
Bas Leijdekkers
734f559705
SSR: let existing templates with "a class" in the name only match classes (IDEA-255916)
...
GitOrigin-RevId: 5d69dab2b8c8eef15561a36c64bc6f3601a941cf
2021-01-22 14:12:38 +00:00
Bas Leijdekkers
823b8e89d2
SSR: move convenience method to global matching visitor for use by other matching visitors
...
GitOrigin-RevId: d00e5b4cbdf3f07d3fd2ff8c9a0c9ab7f40141fa
2021-01-14 13:51:43 +00:00
Bas Leijdekkers
d9a5f3609d
SSR: fix exception on invalid search template (IDEA-259106)
...
GitOrigin-RevId: 2baa413344e36389a2614407417f18f8a913f765
2021-01-11 12:14:08 +00:00
Bas Leijdekkers
4cc5e6267c
SSR: fix same variable validation in scope match (IDEA-259108)
...
GitOrigin-RevId: d6f716d22f55ddb1817718913fea7eb69035eaf4
2021-01-11 09:21:39 +00:00
Bas Leijdekkers
15de7bbd89
SSR: make java replacement template validation more strict (IDEA-201479)
...
GitOrigin-RevId: c46e39ec12126eda9db49b0c00f29cc3a37cf2e7
2021-01-08 16:26:56 +00:00
Bas Leijdekkers
cd3fd6f7c6
SSR: create fewer iterator objects
...
GitOrigin-RevId: f151b1c1a3b95fdb258754839280e58d0800b62f
2021-01-05 16:07:36 +00:00
Bas Leijdekkers
159b1a42b3
SSR: fix NPE
...
GitOrigin-RevId: 9af6fc64163de9cd95577a368164e43d13b0318c
2020-12-21 18:13:26 +00:00
Bas Leijdekkers
a79aef6a3e
SSR: fix more '<' in pattern problems (IDEA-228320)
...
GitOrigin-RevId: 46e28459871d434fe16ce7d20303e2c4b1085cfe
2020-12-21 18:13:24 +00:00
Vladimir Krivosheev
87210d6e8b
reduce trove usages
...
GitOrigin-RevId: ca792a82834004ea24beed791b1771261eef920b
2020-11-18 19:43:30 +00:00
Bas Leijdekkers
f2befb5cd1
SSR: match java primitive arrays correctly with variable (IDEA-254985)
...
GitOrigin-RevId: 861e73221045f495283303b8b1162aaa88d3d7fa
2020-11-10 09:56:47 +00:00
Alexey Kudravtsev
bde2f5872e
fix incorrect NotNull
...
GitOrigin-RevId: 472611f90b4171f58e0a90b27b6be0429e162e3c
2020-10-12 14:49:18 +00:00
Louis Vignier
1a1464c3cf
SSR: Fix typo in Java predefined template name
...
GitOrigin-RevId: 230961789ccff56f82b950033238659be6d0ead7
2020-10-12 13:06:59 +00:00
Louis Vignier
454d5a1d0c
SSR: Format createConfiguration calls
...
GitOrigin-RevId: cdc088160e36488438963b6968c2b1b607d43d06
2020-10-12 12:28:14 +00:00
Louis Vignier
37ff912258
IDEA-247689 SSR: Add refName to configurations
...
This commit makes it possible to refer to configurations by refName when available.
It will be possible to internationalize predefined templates names without breaking existing templates using the reference filter.
GitOrigin-RevId: 7d1b7f2f537e2ab2b7efa37af45def58fa0241c1
2020-10-08 10:11:55 +00:00
Bas Leijdekkers
1dbf8597f6
Revert "IDEA-245442 SSR: Refer to configurations by a unique id"
...
This reverts commit 1e9a6111
GitOrigin-RevId: 2763b59bab56636e92a92446ab2d8e8353490fa5
2020-09-27 18:21:41 +00:00
Louis Vignier
ec197262e1
IDEA-245442 SSR: Refer to configurations by a unique id
...
The name of a configuration is not unique, so lists of configuration names can omit some. Using "name (type, predefined)" instead of "name" makes it possible to continue referring to configurations by a String, which is unique.
GitOrigin-RevId: 1e9a61119979f64676a983a88601cbe6ba0de5cd
2020-09-23 08:13:23 +00:00
Bas Leijdekkers
3bafcd9746
SSR: minor cleanup
...
GitOrigin-RevId: 69c2c7a8b01c62ca15f3480de551166f138425ea
2020-09-18 09:57:08 +00:00
Bas Leijdekkers
f441adc9d5
SSR: commenting (IDEA-CR-66769)
...
GitOrigin-RevId: 9926216433c7eea3dc6ad62731e533cdd44bdbe0
2020-09-18 09:57:06 +00:00
Bas Leijdekkers
42f880926a
SSR: correct handling of dumb mode (EA-220872, EA-232640, IDEA-247874)
...
GitOrigin-RevId: cc94a106953cd564f64bae67f865cbe661647b19
2020-09-09 14:12:10 +00:00
Bas Leijdekkers
af8f1aa985
SSR: pattern context i18n (IDEA-249583)
...
GitOrigin-RevId: fcd4fa3a5469b46e6c532db8986a9f67b5b36338
2020-09-01 12:39:02 +00:00
Louis Vignier
26a0af9d47
i18n: extract SSR related strings to SSRBundle
...
GitOrigin-RevId: f8a3ba74b3667390365c16bf50a67b15f3962a0c
2020-08-03 14:09:06 +00:00
Bas Leijdekkers
748c5d1a67
SSR: allow to find only variables without type element (i.e. lambda parameters) (IDEA-246940)
...
GitOrigin-RevId: 4e88f8c38e798eb7fa44b0c51ac2af598215edde
2020-08-02 18:35:45 +00:00
Bas Leijdekkers
7094b8cd26
SSR: find lambda parameters with variable declaration pattern
...
GitOrigin-RevId: 195e38771ea9fbe6a0bb29cd846f69857aec988a
2020-08-02 18:35:42 +00:00
Alexey Kudravtsev
ce28f375ce
notnull
...
GitOrigin-RevId: a62047f61869bc1971b700232adbde58019ad265
2020-07-21 10:38:54 +00:00
Vladimir Krivosheev
3d280e4fb2
cleanup (final)
...
GitOrigin-RevId: 446f1aef2550b74b13c788fceaa36967a6f0b9c9
2020-07-15 17:06:10 +00:00
Vladimir Krivosheev
d4e9b09e26
cleanup (final)
...
GitOrigin-RevId: 93607e195763f2acf29ee0d7a280d7e07e8d2f14
2020-06-26 12:21:17 +03:00
yopox
d99fa1594f
SSR: Comments containing a given word predefined template
...
In the template `// $before$ bug $after$`, the spaces around bug are now optional.
(.*?) can match multiple lines. The previous pattern will match any comment (including PsiDocComment) containing bug.
GitOrigin-RevId: 25f5ddfb52630d8e793568b5081ca9c06b20729a
2020-06-18 20:14:58 +03:00
yopox
28bdd4c75a
IDEA-243739 SSR: Improve comments matching
...
LiteralWithSubstitutionHandler was taking into account the complete comment text when matching.
By making it possible to add an offset when matching, we can make end of line / block comments match with other comments types when the pattern contains variables.
GitOrigin-RevId: fb7a46dddbcd49177954352271cddc9aeadad9c6
2020-06-17 22:02:07 +03:00
Bas Leijdekkers
1a56817bb0
SSR: avoid duplicate code
...
GitOrigin-RevId: 26c63727dcc73ebc0d541007debf95971db1650d
2020-05-30 21:27:06 +03:00
Bas Leijdekkers
a4a9237e4f
SSR: fix multi-match of variable declaration and new expression (IDEA-242127)
...
GitOrigin-RevId: b073656f88f8d218b7ea6f9174690f5679a25da1
2020-05-30 21:27:06 +03:00
Bas Leijdekkers
c52de9807a
SSR: match parenthesized method call qualifiers (IDEA-242120)
...
GitOrigin-RevId: 18577fd0a7825f8f553167e5679cf18869aba449
2020-05-30 21:27:05 +03:00
Tagir Valeev
126e6eda88
StdFileTypes.JAVA replaced with JavaFileType.INSTANCE where possible
...
GitOrigin-RevId: 2af926d71e5c5cb44c30ce4544ae1988d1cd2b0f
2020-05-27 09:33:20 +03:00
Bas Leijdekkers
eaaee63e51
SSR: rename
...
GitOrigin-RevId: 97d8c1685ac0b2aeec82d808a61ea103cd44ee7f
2020-05-20 18:48:38 +03:00
Bas Leijdekkers
39db2df574
SSR: hide "use static imports" and "shorten fully qualified names" checkboxes when not applicable (IDEA-236919)
...
GitOrigin-RevId: 210ed62d7c16367ab5384befdda9129fc1e91af8
2020-05-19 15:41:21 +00:00
Vladimir Krivosheev
f2a72b34fa
do not export trove from util module
...
GitOrigin-RevId: 666bf5e1fc45045bb9b1c391b7ec5a2ac4b65dde
2020-05-16 16:34:43 +00:00
Bas Leijdekkers
c496a2d345
SSR: remove CachedValuesManager usage again as it leaked the project in tests
...
GitOrigin-RevId: 4abbf8baa29b05b76cef31659d86b70ca4995fcc
2020-05-07 19:36:52 +00:00
Bas Leijdekkers
23bedebeba
SSR: use CachedValuesManager to cache profile in language (part of IDEA-238267)
...
GitOrigin-RevId: 21ad3fbadd639e1dfcfc78251ac38e0e9918c97d
2020-05-07 19:36:52 +00:00
Bas Leijdekkers
12ff3a9f28
SSR: add javadoc
...
GitOrigin-RevId: 5431780a0728d4cb9724c2f09403a4f81dd2d24e
2020-04-20 08:03:39 +00:00
Vladimir Krivosheev
9b2bfd064a
cleanup
...
GitOrigin-RevId: 367e005e1f28e093a664ce2fda4791862f475b65
2020-03-30 16:31:55 +00:00
Bas Leijdekkers
daefccf18f
SSR: without hierarchy should find only direct implements (IDEA-235951)
...
GitOrigin-RevId: 249835418ac9e850b208c1ece2701c5f5a525acc
2020-03-28 14:10:08 +00:00
nik
952d7a15ea
[platform] move properties used in java.psi* modules to JavaPsiBundle (IDEA-209382)
...
GitOrigin-RevId: bb845bfcca5563227b02947d28913b5070ed03f5
2020-02-14 07:51:31 +00:00
Bas Leijdekkers
c49e231d56
SSR: match enum constant argument lists and initializers (IDEA-231441)
...
GitOrigin-RevId: c7ba6b448e4d9bf385f0ce68cdfd40179655aa4d
2020-01-28 16:39:09 +00:00
Peter Gromov
6d71b92a62
make synthetic enum valueOf/values methods part of PsiClass#getMethods
...
because all other synthetic methods from records and plugins are also there
inspired by IDEA-CR-57031
GitOrigin-RevId: 9a8b345adaded83fe13980a28db5d9f9acc7450d
2020-01-21 06:38:24 +00:00
Tagir Valeev
78a91459c4
Array annotations changed to type-use style (not compilable now)
...
GitOrigin-RevId: 68aa4ba200618083684599228e13dfdba35967a4
2020-01-16 08:11:51 +00:00
Bas Leijdekkers
d3810916a7
SSR: simplify pattern error checking api and code, reduce duplication
...
GitOrigin-RevId: ed0ae44c33252006b045c9c1200f7632ea4ec153
2020-01-14 14:02:28 +00:00
Bas Leijdekkers
2845a92acd
SSR: simplify pattern creation for java by using code fragments
...
GitOrigin-RevId: 99dc19ea2fc1d9ff0c042378d1986eaffbc6a6c1
2020-01-14 14:02:28 +00:00
Bas Leijdekkers
ce06b1699b
SSR: minor simplification
...
GitOrigin-RevId: 7cb8c19a16446909ec562c65d836cf3d1ca83b03
2020-01-14 14:02:28 +00:00
Bas Leijdekkers
01883f5e38
SSR: fix error border after changing file type
...
put callback in current document instead of document from dialog creation
GitOrigin-RevId: c81c5e63db08def242ffcc4846b07af5a6d67cf0
2020-01-07 15:35:01 +00:00