Commit Graph

235 Commits

Author SHA1 Message Date
Tagir Valeev
87b3de1d23 [code-style] Better support local settings; use in BindFieldsFromParametersAction
Support local settings inside CodeStyleSettingsManager.getCurrentSettings
Local settings have priority over temporary settings

GitOrigin-RevId: e9033336482f116115f1ff356bdb979ded398bed
2023-08-02 21:04:58 +00:00
Rustam Vishniakov
98b9fc9293 Add runWithLocalSettings() method for production code to avoid interference with other threads
GitOrigin-RevId: 8c844bd146d1bf0a4cefbf3b32579331555257da
2023-08-02 11:13:30 +00:00
Nicolay Mitropolsky
edc2082508 [yaml] IDEA-325130 Implement async indent on enter typing for YAML
GitOrigin-RevId: 70c66d8ef1519e5e8f87474052769ab8d790a763
2023-07-13 11:59:23 +00:00
Nikolay Chashnikov
76769b85fa [API] remove 'forRemoval' mark from deprecated API which isn't going to be removed soon (IDEA-312594)
GitOrigin-RevId: 020bb5dfe58e0b483147b721a9a6d9c5a2a7b4af
2023-06-12 11:00:49 +00:00
Tagir Valeev
b79cded356 [mod-command] psiUpdate refactoring: extract FileTracker to be able to track several files in future
GitOrigin-RevId: 1916cc2d3a20220ae244bf39f18d3f264820e95f
2023-06-10 08:35:17 +00:00
Dmitry Avdeev
f35335c51c moving ENABLE_SECOND_REFORMAT to CodeInsightSettings
since it's not a code style setting but rather a user workflow preference

GitOrigin-RevId: fa02dc56251a6658f642555c408c55ef565ecb83
2023-05-08 17:51:57 +00:00
Vladimir Krivosheev
9e4bd8bcae convert ProjectLocatorImpl to modern language (part 2)
GitOrigin-RevId: 8f8ce3bce410b8070c0e0b52b388afe434c0fe8a
2023-05-07 18:16:06 +00:00
Rustam Vishniakov
5ef42d541a Correctly handle line endings via EditorConfigCodeStyleSettingsModifier
Fixes:
* IDEA-225911 Intellij changes line ending from LF to CRLF when Editor config enabled on frame deactivation
* IDEA-285800 EditorConfig end_of_line not respected for new files

GitOrigin-RevId: 464c70e6fc649d4c8d0cdcf14a61ca2cdc86dcd2
2023-05-05 12:15:42 +00:00
Vladimir Krivosheev
227d75a1fc don't extend DynamicBundle
GitOrigin-RevId: 49cbebd629a92877dbeeffba8d97b0631fb9407e
2023-05-05 09:46:42 +00:00
Rustam Vishniakov
69fbc40c56 Remove condition preventing execution of PsiBasedFileIndentOptionsProvider on EDT to fix cases like WEB-47888
GitOrigin-RevId: e89da4482457729b6962227743f4cb4b8a0e6a16
2023-05-04 10:25:09 +00:00
Tagir Valeev
97f6055b97 [code-style] Move PostprocessReformattingAspect to API, add some javadoc, remove unused method
GitOrigin-RevId: ef4393edeab837fca93764414e52bf097fa3b71b
2023-04-19 14:38:09 +00:00
Rustam Vishniakov
d72d4474f1 Fix regression: IDEA-316603 Enable clangFormat via status bar doesn't work
It also affects .editorconfig

GitOrigin-RevId: 5234ce049b05985cb120edad3fffa120087b94b9
2023-04-06 14:35:03 +00:00
Rustam Vishnyakov
c997512199 IDEA-315775 Slow operation assertion at SettingsImpl.reinitDocumentIndentOptions()
GitOrigin-RevId: 85b79bac3d6b02407ca9b37ce9bb3e5ea69eb27a
2023-03-27 16:11:15 +00:00
Gregory.Shrago
1d6d9934e0 EA-820929 - T: WorkspaceFileIndexDataImpl.ensureIsUpToDate
GitOrigin-RevId: 3851b8999305e22ddb9f35986ada4030d4c159d6
2023-03-16 21:59:43 +00:00
Alexey Kudravtsev
cbf060942c deprecate ObjectUtils.consumeIfNotNull, fix usages
GitOrigin-RevId: 576b7bbf18a6b1bc772c12dca24b82a4c8a5ad29
2023-03-13 17:41:58 +00:00
Vladimir Krivosheev
812fc3ef4b move MultiValuesMap to ide-impl from util, it is a deprecated class
GitOrigin-RevId: 5b3e8b4add4abe8f0dabb1c9157f663cfe7619f2
2023-03-09 08:11:38 +00:00
Alexey Kudravtsev
cce3935791 remove/deprecate unnecessary/duplicate methods from ContainerUtil
GitOrigin-RevId: 24aaa90f7abd6d6d035fd5216fc2c35eb09a5f76
2023-02-25 01:30:39 +00:00
Alexey Utkin
697b0b3502 [CLion] makes ContainerUtil quick fix
GitOrigin-RevId: e92cb9af3fb0760573bad95d54aee8eb85523a49
2023-02-24 16:50:55 +00:00
Alexey Kudravtsev
eadeade0de mark several methods Unmodifiable to highlight more probelms
GitOrigin-RevId: 18e5e68e451ffef4333c057e33d03f865deeeb65
2023-02-21 04:13:14 +00:00
Alexey Kudravtsev
9f5b60b0f0 replace some usages of ContainerUtil.set() with immutable sets to get rid of unclear-semantic methods
GitOrigin-RevId: 3ba1266af01d64a228c10df59b18c4ac797c2a9b
2023-02-20 19:11:19 +00:00
Rustam Vishniakov
eb9e97ee8b [code-style] Drop diagnostic stack trace (WEB-59377 Obtaining a StackTrace takes a lot of time)
GitOrigin-RevId: 3522f83455c3f1ec4294dd2693ed7e15f060a0b6
2023-02-10 17:46:50 +00:00
Olga Strizhenko
11d6c1e18f WI-68784 Fix (completely broken) Drupal code style
GitOrigin-RevId: 2a9346a6512c18264aa472d381a4c28745ed0aa5
2023-02-10 11:26:42 +00:00
Tagir Valeev
f456ed0604 Pattern variable can be used mass cleanup
GitOrigin-RevId: 55839bf0deca5f81d0f7eb5b1c190145a5ea0037
2023-02-07 13:58:20 +00:00
Nikolay Chashnikov
b66937ec7a [platform] migrate code to use Strings.areSameInstance instead of comparison operations (IDEA-312368)
This is needed to make intention explicit and avoid warnings.

GitOrigin-RevId: d7e0433784bc9c0bbfb965da6720c6d86d85c9ec
2023-02-06 19:58:43 +00:00
Rustam Vishniakov
a1a10b4760 [code-style] IDEA-118043 Make "Enable formatter markers in comments" ON by default
GitOrigin-RevId: 52e3a07485003552520bfedc9784a2d33e5b0f08
2023-01-27 17:42:41 +00:00
Rustam Vishniakov
3276738cd4 [code-style] Keep already stored values if they have changed to defaults
GitOrigin-RevId: 90dbecbed3b4eb442c3d420c30dbffe2b2fc71dd
2023-01-27 17:42:37 +00:00
Alexey Kudravtsev
984cff47dd replace some newArrayList() usages with immutable List
GitOrigin-RevId: 04be2a68211a062b51ecc32a55cb4ef3576b06be
2023-01-24 15:13:06 +00:00
Alexey Kudravtsev
1704e2a0a6 cleanup: fix method signature types, notnull
GitOrigin-RevId: 661a553b90fd91bec39403d56b0b906ef0ba603a
2023-01-24 15:13:02 +00:00
Nikolay Chashnikov
774830781e cleanup: remove redundant '@author' tags from javadoc comments - 30
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: 8b807033fab19289376c5e44972453a10f4b6da4
2023-01-18 17:03:03 +00:00
Nikolay Chashnikov
4f51eb1dd2 cleanup: remove redundant '@author' tags from javadoc comments - 3
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: 474de1bafc0651b90f08384cf04094eff9466115
2023-01-18 17:01:34 +00:00
Leonid Bushuev
29e6048746 CustomCodeStyleSettingsManager — improve debug-ability
GitOrigin-RevId: 03e5b81dd09161a13508ba727ad91d8d6aefc976
2023-01-10 19:15:26 +00:00
Daniil Ovchinnikov
578eaaf60e rename library kotlin-stdlib-jdk8 -> kotlin-stdlib
GitOrigin-RevId: cddf45ccfd5563d3fe209bea62a1c37c94f44ff9
2023-01-10 12:22:34 +00:00
Rustam Vishniakov
663dd62ca4 [code-style] Move PredefinedCodeStyle to Code Style API module
GitOrigin-RevId: a03174a92e4f5b22d02e44728540ebebdc6b7a19
2022-12-29 17:04:27 +00:00
Alexey Kudravtsev
3f745254b5 reduce risk of immutable list modification
GitOrigin-RevId: b0e0c599c9d246219e55170c30d5866692970668
2022-12-28 13:57:20 +00:00
Ilya Muradyan
07e2bdb95a KTNB-33: Code review fixes and tests
GitOrigin-RevId: 71a8e7de21b93ccec017b7c48b6249d4939019ff
2022-12-24 00:47:06 +00:00
Rustam Vishniakov
d9e828b58f IJPL-64: Extract PsiBasedFileIndentOptionsProvider for background indent options providers
PsiBasedFileIndentOptionsProvider

GitOrigin-RevId: 82ee90fced52cc60d80af6db298edc9eb5c161e6
2022-12-20 16:18:15 +00:00
Rustam Vishniakov
5ff9bd7b9e [code-style] Fix Jade tests
GitOrigin-RevId: aec685fbd95b6c781accacb783283e3d3f9f27c6
2022-12-14 16:37:41 +00:00
Rustam Vishniakov
79f27d699f [code-style] Reapply message bus usage for CodeStyleSettingsChangeEvent
GitOrigin-RevId: 9e184fc94333ee5c7d366488c9e58b27abf2b7f2
2022-12-14 16:37:36 +00:00
Rustam Vishniakov
a033b3603a [code-style] Prepare for merge with editorconfig-ec4j
GitOrigin-RevId: 5f1cb276d98b099ca21c2a2dd1e41d60691ab6e0
2022-12-13 11:41:24 +00:00
Rustam Vishniakov
a5669c662c [code-style] Cleanup, JavaDoc for getIndentOptions() methods.
GitOrigin-RevId: a3ad255006cccfc58d0872fdb78b7dd70e85c542
2022-12-13 11:41:21 +00:00
Rustam Vishniakov
b2d09d3dd4 IDEA-304705 Slow Operations: Editor ctor gets psi file on EDT
GitOrigin-RevId: a3aad95484fe7fc1d5642e1bf6d45a2b252e8b8a
2022-12-08 18:13:29 +00:00
Vladimir Krivosheev
fccbb5e8eb use message bus for CodeStyleSettingsListener
GitOrigin-RevId: c5fbb37239dbdffd69c41877a17a4dd0dcd79dc9
2022-12-08 09:23:15 +00:00
Alexey Kudravtsev
793fab22f4 ArrangementEntry: add wildcards to help refactoring to immutable collections
GitOrigin-RevId: 4286d7065b0f36d8794076f46f1ea4af83d7124e
2022-12-05 14:50:52 +00:00
Rustam Vishniakov
398a578deb IJPL-64: Use getIndentOptions(project,settings,virtualFile) in TransientCodeStyleSettings
GitOrigin-RevId: 8196f970378a661d566de7c7a91c66cb937aa49f
2022-12-02 14:51:32 +00:00
Rustam Vishniakov
3800e3ca00 IJPL-64: Introduce getIndentOptions(project, settings, virtualFile) method, remove old usages from CodeStyleSettings
GitOrigin-RevId: 1c980e6255adc4caf780ae510b26575b1ef4ed76
2022-12-01 18:35:30 +00:00
Rustam Vishniakov
f0d2599b5b [code-style] Change method signature, JavaDoc
GitOrigin-RevId: 814e94c539a884c57d39855ea15e0e2918dd2c57
2022-12-01 18:35:26 +00:00
Rustam Vishniakov
76933b41cd Fix IDEA-305056 Slow Operations: CodeStyleSettingsManager.fireCodeStyleSettingsChanged handled on EDT
GitOrigin-RevId: a7a633ccfd647f397fb96049afa82a2d5eab1629
2022-11-29 15:39:25 +00:00
Alexey Kudravtsev
b2996cda44 deprecate ContainerUtil.newArrayList(Object) to prefer more immutable List.of()
GitOrigin-RevId: 7aadc5db58512750fbf47563df2d77f9be4c6e83
2022-11-28 19:58:14 +00:00
Rustam Vishniakov
a9b9897e5e [code-style] Some cleanup after IJ-CR-98811 IDEA-304695 Slow Operations: Editor SettingsImpl.getRightMargin on EDT
GitOrigin-RevId: dbc7558e3e4c03a2215fc66236cfdd8bd8855b17
2022-11-25 20:29:09 +00:00
Dmitry Avdeev
d4f08112e4 IDEA-304695 Slow Operations: Editor SettingsImpl.getRightMargin on EDT
GitOrigin-RevId: 5f20e0f4a73134f8ad4265198c62ed693b4e10cc
2022-11-17 19:44:01 +00:00