Commit Graph

272 Commits

Author SHA1 Message Date
Nikolay Chashnikov
1e74d42088 [code style] API cleanup: remove unused deprecated API (IJPL-503)
GitOrigin-RevId: 2548c289b864551dd1c8ee143a13cb6f2f3c0c3f
2024-05-15 23:26:00 +00:00
Daniil Ovchinnikov
0ceb137057 IJPL-797 API dump: generate api-dump-unreviewed.txt and exposed API lists [1/4]
GitOrigin-RevId: 372e767101ed7821a6ef860d7be96f1c536833ef
2024-04-09 02:07:00 +00:00
vladimir.petrenko
ff2d6ab82c RDCT-1091 adhoc fix "Exception: Light files should have PSI only in one project"
(cherry picked from commit 2afdd4e52ad1aae8b04a7e55fa13b9db986738ed)

IJ-CR-128834

GitOrigin-RevId: 7d3b9740f4b1cae7568e6afbfaebe4190be8c73d
2024-03-14 12:19:25 +00:00
Dmitry Avdeev
d52c5f8435 IDEA-333522 T: WorkspaceFileIndexDataImpl.ensureIsUpToDate (from CodeStyleCachingServiceImpl.tryGetSettings)
cache on FileData instead of FileViewProvider

GitOrigin-RevId: de59fb20da8ebaea6b77c7a776769697d30be370
2024-02-28 14:38:06 +00:00
Ramazan Dzhekshembaev
768af1fb04 [fleet] add documentation for DelayedImportsOptimizerService and mark api as internal IJPL-700
GitOrigin-RevId: 5b8a42fdcebfe84e8a58a47b494176c69a675e41
2024-02-22 13:54:37 +00:00
Yann Cébron
071826ed8c [codestyle] CustomAutoFormatSyntaxErrorsVerifier: minor doc cleanup
GitOrigin-RevId: 771661d5b5582fb2ba66a9a3382a540fb94a7cba
2024-02-20 15:50:44 +00:00
vladimir.petrenko
d36bea9066 RDCT-940 RDCT-1029: restore the old state of code style settings in case of exception
(cherry picked from commit aaed013cdae02a28ab303466090dc2bec05c6fee)

IJ-CR-125844

GitOrigin-RevId: 4009211ab2282f59edf231df00fed7659570cc16
2024-02-19 16:37:21 +00:00
vladimir.petrenko
72db159935 RDCT-940 RDCT-1029: make the base consumeValue suspend to avoid blocking EDT by runReadAction calls
(cherry picked from commit 9aab75dd878ba5b177c3d5bd958bf2050f17f946)

IJ-CR-125844

GitOrigin-RevId: b821c4f675c68d95fbd0be9d1fd388ccef46bd01
2024-02-19 16:37:16 +00:00
vladimir.petrenko
7c8c757be4 RDCT-1029: add API for synchronizing CommonCodeStyleSettings and sync it for Kotlin
(cherry picked from commit 3f525d21efafadc41a9b5d919d323cd672d68ec4)

IJ-CR-125844

GitOrigin-RevId: 0fd91362fa6116a67d7762046c5fae36bc9905e8
2024-02-19 16:37:11 +00:00
vladimir.petrenko
4cd488244e RDCT-940: introduce an API for synchronization of CustomCodeStyleSettings implementations
(cherry picked from commit 17f98cc6bbba32f692f1c22e8d331479fcc0e0d3)

IJ-CR-125844

GitOrigin-RevId: 922657eb7ca4c80668b5538a7d42ae265cb292b2
2024-02-19 16:37:01 +00:00
Tagir Valeev
bc953af5de Fix/suppress IgnoreResultOfCall
GitOrigin-RevId: 2f0cc37e902e13b9dade80af300e218a6f7665ec
2024-02-09 19:11:14 +00:00
Ramazan Dzhekshembaev
3ba4620456 [fleet] catch long optimize imports step for kotlin during alt enter preview
GitOrigin-RevId: 999c4a2fa77c8b16b183031fb5e368882b6397a7
2024-01-31 11:53:34 +00:00
Dmitry Osinovskiy
e922727e24 Formatter: mark API as experimental
GitOrigin-RevId: 903e8ab2a8a6399f77b1c27e13d47c02d447b6e6
2024-01-25 07:37:24 +00:00
Dmitry Osinovskiy
7e6d706b6f Formatter: add outdents to simplify importing formatting model from ReSharper.
Added indent types OUTDENT_NORMAL and OUTDENT_SPACES that allows to create outdents (second one - only outdents in alignment).

GitOrigin-RevId: 57e76955e9002435d7431f3971fc70042431ce9d
2024-01-25 07:37:24 +00:00
Dmitry Osinovskiy
6cce4c5bc1 Formatter: add enforceChildrenToBeRelativeToMe option to indents to simplify importing formatting model from ReSharper.
This option allows a block to specify that its children should be aligned to it. The same effect could be achieved if all children would use relativeToDirectParent.

GitOrigin-RevId: fb76819caef118ba70d6dbdafbfda9c1973fa6f5
2024-01-25 07:37:24 +00:00
Nikolay Chashnikov
9a11dfef8e [platform] API cleanup: remove unused deprecated API (IJPL-275)
GitOrigin-RevId: d94aad0ad6c48854d997dc33f1c0b1cf5939d030
2024-01-11 11:20:56 +00:00
Piotr Tomiak
f957f3bdc6 WEB-42600 Ensure injections are formatted consistently with editor config.
GitOrigin-RevId: ccaf7ddeb177d7f78b73cbd76a594f91e67bcaf3
2023-12-04 10:34:49 +00:00
Piotr Tomiak
47ceca20dd WEB-42600 Not respecting indention in inline templates in Angular - set OverrideLanguageOptions to true when using EditorConfig.
GitOrigin-RevId: 68493ae723de0e408aed3384cc17fb5dcca5178b
2023-12-01 17:04:07 +00:00
Vojtech Balik
fd645e80b2 [code style] IDEA-334836 more detailed logging for CodeStyleSettings retrieval and caching
GitOrigin-RevId: 5506a89566c3cb1e112f0f3992e6212ac1096c71
2023-11-23 02:36:11 +00:00
Vojtech Balik
2d160c85d3 [code style] refactoring: move logic for doWithTemporarySettings to CodeStyleSettingsManager
The reason is to keep logic in the same place as `runWithLocalSettings`, which is very similar.

GitOrigin-RevId: b14d77261842f973d7c5d844d083cd1a5789e523
2023-11-23 02:36:04 +00:00
Vojtech Balik
894cbd3cb0 [code style] improve javadocs for local/temp settings API
GitOrigin-RevId: 30773c06b1b53002fa89060a9220f019d39c0972
2023-11-23 02:36:01 +00:00
Vojtech Balik
202d57ce77 [code style] extend local settings API for parity with temporary settings to ease transition
GitOrigin-RevId: 24f28d7b601fb629fa64df56d6a9a7609d0a02a6
2023-11-23 02:35:58 +00:00
Vojtech Balik
1b3544bef2 [code style] Make sure local code style settings are used if present
GitOrigin-RevId: 595fd0475c844a5e4b7d810d01cbae026a2e31b8
2023-11-23 02:35:55 +00:00
Leonid Bushuev
06b0029e5f SQL Code Style: add javadoc to CommentStyleSettings and mark it as experimental.
GitOrigin-RevId: 81e5db23f47874b457584d91fba34b6bba7051fb
2023-11-21 16:50:24 +00:00
Leonid Bushuev
025a9bb114 SQL Code Style: simplify the CommentByLineCommentHandler class
GitOrigin-RevId: 6e5c22450f508f444b21683555849282d63c6c5f
2023-11-15 14:07:06 +00:00
Leonid Bushuev
146207cead SQL Code Style: provide correct option whether to indent line comment and fix DBE-18236
GitOrigin-RevId: 0f7fd6823fc41f294e564c1ab4f1ec5075ce3625
2023-11-15 14:07:05 +00:00
Georgii Ustinov
85b67e2969 [Java. Code formatting] Add wrapping for switch case label list
IDEA-303802 formatting options for the enhanced switch

GitOrigin-RevId: d1b12b9c97f2e15922cd63cd89300b286f54861b
2023-11-10 13:32:11 +00:00
Yann Cébron
b4665d9c1a [code-style] LanguageFormattingRestriction: javadoc
GitOrigin-RevId: aee20a04706d1e523352ce5c243386fc447a8140
2023-10-25 17:09:26 +00:00
Yann Cébron
2d884ba539 [code-style] CustomAutoFormatSyntaxErrorsVerifier: javadoc cleanup
GitOrigin-RevId: acec73f8115cfa4072eb44395bc81df200a370a3
2023-10-25 17:09:23 +00:00
Rustam Vishniakov
aaa823edba [code-style] Drop irrelevant comment
GitOrigin-RevId: 8d06e6805e270d1c7bc7ba9fafa24400dc239591
2023-10-23 09:37:44 +00:00
Nikolay Chashnikov
f1c274b406 [platform] mark for removal API which was deprecated in 2023.1 or earlier and has no external usages (IDEA-322162)
GitOrigin-RevId: 9e00612b0c5fd1268d6ef056c825150fea19e085
2023-10-20 22:20:49 +00:00
Yann Cébron
11e2c6ab8d [platform] CodeStyleSettingsListener: fix Topic level
GitOrigin-RevId: 237fd407a1eaa1cd3e5406508709d38741545293
2023-10-17 10:45:17 +00:00
Yann Cébron
e1814dfb13 [platform-*] annotate Topic level
GitOrigin-RevId: 7f1f1d5885c7ba1444ec64e22f28a971f2e32b38
2023-10-16 19:42:42 +00:00
Alexander Doroshko
2c975b8c0a IDEA-334150 wip: make updatedText @Nullable in AsyncFormattingRequest.onTextReady()
Needed for the case when the AsyncDocumentFormattingService doesn't want to change the document text in FormattingTask.run()

GitOrigin-RevId: cccca19fc1928c4f6045e181536dbaf975926a6e
2023-10-06 17:42:26 +00:00
Olga Strizhenko
a88f6896eb WI-73171 File Cache Conflict prompt when invoke Reformat after live template was applied
GitOrigin-RevId: cd038fede56b1b9fb9b864480da3c14c6d911fb5
2023-10-05 15:15:17 +00:00
Alexey Kudravtsev
8a8aceb216 sidestep data race?
GitOrigin-RevId: 6b730b5139530498da7f5af7f43020e8251c110a
2023-09-01 17:25:55 +00:00
Vladimir Krivosheev
21c4957bb2 IDEA-328027 don't use deprecated ConcurrentIntObjectHashMap in production
GitOrigin-RevId: 7277f58a08614232c43fe8a131548e5a8f97eda2
2023-08-27 06:28:20 +00:00
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