Commit Graph

256 Commits

Author SHA1 Message Date
Daniil Ovchinnikov
823e985f18 API dumps: re-generate dumps
GitOrigin-RevId: b5cec844cbfe3313723404f7a85b590c25350b41
2024-10-04 21:20:21 +00:00
Vladimir Krivosheev
a9e7930abe bazel - build lang-impl
GitOrigin-RevId: c4c4dce20bd6e4046644f95f6e7b3f437c51668d
2024-09-27 13:47:17 +00:00
Vladimir Krivosheev
a1210118c0 bazel - fix JPMS, exports and internal
GitOrigin-RevId: 3dc80a9ee01e1900c0cebc24b2d08f04f93ddeff
2024-09-25 19:05:37 +00:00
Vladimir Krivosheev
4eb9b78b78 use bazel to build platform-impl
GitOrigin-RevId: b5bbc75323a08c7674777e512dcfd988ceb4461f
2024-09-22 17:01:28 +00:00
Vladimir Krivosheev
834bd75254 run jps-to-bazel by Bazel, compile platform using Bazel
GitOrigin-RevId: 3774d5adc404b02036f70b7cc35c9e60fdb5d84c
2024-09-21 00:54:17 +00:00
Vojtech Balik
3b9b51191b [formatter] IJPL-159632 make async formatting run withDocumentsCommitted
GitOrigin-RevId: 2c2205ad04d41ccbd9880c0d71e9d380087b9b79
2024-09-12 14:44:04 +00:00
Lev Serebryakov
d232433195 IJPL-149317 More additional explicit locks.
GitOrigin-RevId: f7550f391cc9bc8b4e4275e7f23ff185b0922f26
2024-08-14 18:12:56 +00:00
Georgii Ustinov
dbc682a07e [Java. Code Formatting] Attempt to fix non-deterministic formatting when dependent whitespaces are used
IDEA-181768

GitOrigin-RevId: a31e63ad2a6145aec5ddfe329c9a7cf10d116cc7
2024-07-08 15:36:50 +00:00
Dmitry Osinovskiy
89d19e1ca5 Formatter: extension point for preparing of formatting data, use in Razor formatter to prepare data on backend
GitOrigin-RevId: 880e038bfb7f2e0862ba95f05348546702a9c487
2024-06-24 15:26:05 +00:00
Evgeniy.Stepanov
e4e5826e81 [rdct] Do not perform async code formatting on thin client, do it only via smart backend, fix TypingConditionAndIndentTest.addNestingTest
GitOrigin-RevId: 308e969c566e6031e85b4d7d9e992b33e7099a12
2024-05-31 19:11:27 +00:00
Daniil Ovchinnikov
6226776bd0 IJPL-148997 exclude non-abstract toString() from the API dump
GitOrigin-RevId: 6352bbb374532bca296d08131ae50083f69e46c0
2024-05-29 00:05:31 +00:00
Rustam Vishniakov
12faff110d ApiCheckTest fix: CodeStyleSettings constructor
GitOrigin-RevId: e1a0a60f28fc05514e18a87336e8557476d734b3
2024-05-21 15:26:25 +00:00
Rustam Vishniakov
dd6048371a ApiCheckTest fix: removed REFORMAT_BEFORE_COMMIT_COMMAND_NAME
GitOrigin-RevId: f112c07e58d6d699edf0d22964c30453900398fb
2024-05-21 15:26:20 +00:00
Rustam Vishniakov
49d0dd5731 IJPL-797 intellij.platform.codeStyle.impl review internal API
GitOrigin-RevId: 5125edc8dd19093cfffe25188a6c3c2902fcff54
2024-05-21 15:26:15 +00:00
Rustam Vishniakov
c3d4e53c52 IJPL-797 intellij.platform.codeStyle review internal API
GitOrigin-RevId: 37a934f36d5ef626e6ad7435508eec889729628a
2024-05-21 15:25:39 +00:00
Joffrey.Bion
c443e21bda [fleet] Generalize DelayedImportsOptimizerService to PostQuickFixTaskService
We need to use this mechanism for other things than optimize imports, so
we generalize the naming and the types a little bit here.
In particular, this will be used by AmperKotlinProjectConfigurator to run
a sync after Kotlin quick fixes affecting module.yaml Amper files.

GitOrigin-RevId: 309d2a8dc444c723f8eda86c94b2482cd80854fc
2024-05-17 15:59:05 +00:00
Nikolay Chashnikov
79e713c0f4 [code style] API cleanup: remove unused deprecated API (IJPL-503)
GitOrigin-RevId: 36350c55358d6fef7b25e09d87dd71fe7b90b336
2024-05-16 18:01:28 +00:00
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
b03b92e140 IJPL-148490 clean up empty file-classes from existing dumps
GitOrigin-RevId: ca701387e601a76ae25a3a31ca0a02432126e0fb
2024-04-30 20:39:42 +00:00
Daniil Ovchinnikov
5ec66a02cd IJPL-797 API dump: generate api-dump-unreviewed.txt and exposed API lists [2/4]
GitOrigin-RevId: 1f2fcb6d02f6bf1bb52d4063ac8b13ba953b6697
2024-04-09 02:21:27 +00:00
Dmitry Avdeev
fb837de598 IDEA-333522 T: WorkspaceFileIndexDataImpl.ensureIsUpToDate (from CodeStyleCachingServiceImpl.tryGetSettings)
propagate parent virtual file to the copy (e.g. for EditorConfig)

GitOrigin-RevId: 95e851791e78687720c06bab861efe792e55633c
2024-03-07 19:53:45 +00:00
Dmitry Avdeev
df08252d6b IDEA-333522 T: WorkspaceFileIndexDataImpl.ensureIsUpToDate (from CodeStyleCachingServiceImpl.tryGetSettings)
do not recompute on any file change

GitOrigin-RevId: f49b92c16f5d9a1ab2c9224ca512e9fb1db630ee
2024-03-06 14:08:45 +00:00
Christian Melchior
70adc89b1b KTNB-155 Add support for creating Light Kotlin Notebook files
This PR adds support for creating "Light Kotlin Notebook" files, which are just like regular Kotlin Notebooks, but are intended for short-lived experiments and therefore live under the "Scratches and Consoles" section.

Merge-request: IJ-MR-125363
Merged-by: Ilya Muradyan <Ilya.Muradyan@jetbrains.com>

GitOrigin-RevId: 4f72e75442cfe673966a50abd201060dc94299ea
2024-03-01 22:58:01 +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
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
eab8b80ba8 Formatter: mark API as experimental
GitOrigin-RevId: 3aa6e7c17ae56bf5bfd12dc6d4c546d984d2897f
2024-01-25 07:37:25 +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
Maria Filippova
4275f5491d WI-75383 run formatters without FORMAT_FRAGMENTS enabled only when it is allowed to reformat not onlyChangedText
When new file created and commited under selected option `Reformat code`, `FormattingServiceUtil.formatRanges` reformats ranges with the first formatter it founds (QualityToolExternalFormatter if some external formatter is selected), this can lead to unexpected behaviour because QualityToolExternalFormatter runs it task in background thread and thread where commit process runs doesn't wait for it.

GitOrigin-RevId: 6e6ab799022b38517624e6b625cd2f151326fde5
2024-01-16 15:58:04 +00:00
vladimir.petrenko
90db23a285 RDCT-874: preserve ClientId for delayed operations: move it deeper for futureproof (IJ-CR-123236)
(see details in the ticket)

GitOrigin-RevId: 02c372c7089dabd1fd3696073fc123ff3cea8bea
2024-01-05 13:46:50 +00:00
vladimir.petrenko
9fb4f2d3de RDCT-874: preserve ClientId for delayed operations
(see details in the ticket)

GitOrigin-RevId: bd3d511e22a5adc8e2ef11230e2246744a4a6607
2024-01-04 18:05:21 +00:00
Ramazan Dzhekshembaev
7d82dd0fe9 [fleet] commit documents in fleet for code reformat manually, because we can't rely on async document commit after change
GitOrigin-RevId: 1fcf63baa233fe8ebfdc603f8552a0348b41f07a
2024-01-02 16:40:06 +00:00
Ramazan Dzhekshembaev
9a8faccd9b [fleet] ensure document is committed in scheduled code reformat FL-23629 move constant to file throws exception in js
GitOrigin-RevId: d5588701fe0629b8a69867922805d42ccb05360d
2023-12-15 13:47:07 +00:00
Ilya Muradyan
a656719aa1 KTNB-470: Fix insertion of the last quote in the cell
GitOrigin-RevId: 754fd70e171603f0eb395a283671a6ef47eb46c4
2023-12-05 22:28:28 +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
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
Ilya Muradyan
5fdf1247d7 KTNB-343: Bring instanceof checks to top level according to code review comments
GitOrigin-RevId: 82d1aaedeaf4e7ac7ce72dffe802a4a666c7809a
2023-11-01 21:17:09 +00:00
Vladimir Krivosheev
69fc441f6e IJPL-310 mark extensions as obsolete (part 11)
GitOrigin-RevId: ef915fa2bf11f9fbcdf9ebbf80bc553129314335
2023-10-29 20:09:28 +00:00
Ilya Muradyan
7f3cd40764 KTNB-343: Fix formatting during J2K conversion
Formatting should be most likely fixed in some other cases too

GitOrigin-RevId: a1a6419dd4af5aca799ccf96c26bb016a87f07c0
2023-10-26 19:18:57 +00:00
Ilya Muradyan
89077006e7 KTNB-386: Don't delegate formatting to top-level file when it's not needed
Tests are ready and pass but will be merged a bit later after the IJ-MR-116991 is merged

GitOrigin-RevId: 55b056b7f20e557dcf11efad608b469324557267
2023-10-22 17:29:19 +00:00
Tagir Valeev
51854f80b3 "Method can be static" fix massive application
GitOrigin-RevId: ed296b85922a6814d5c6057b5cbc720f0c546e41
2023-10-20 19:12:56 +00:00
Alexander Doroshko
30cd6c0214 FormattingServiceUtil.findImportsOptimizingService: faster checks first
GitOrigin-RevId: 2a785fe480734f82576022fcc48ed6264c869dd2
2023-10-16 23:37:08 +00:00
Ramazan Dzhekshembaev
d9d986a407 [fleet] FL-21031 do reformat synchronously in headless mode
GitOrigin-RevId: 20b0d79ac962048de12fb497889ec5766f271957
2023-10-16 19:26:55 +00:00
Vojtech Balik
5d120f2452 [code style] run CodeStyleSettingsModifiers computations synchronously in headless mode
This reverts commit 3de526ecccc24e3078b9b28d679d6bc6f7ea9d78

Computing code style settings synchronously is needed not only in command line formatting, but also in other headless scenarios like when IntelliJ is used as a backend for Fleet.

GitOrigin-RevId: 9acc1974dfa1a78b523a51e8a56d477465e4814d
2023-10-13 15:42:16 +00:00
Alexander Doroshko
1282b32ba0 FormattingServiceUtil.findService(): faster checks first
GitOrigin-RevId: 01af72e726ace4a4dfecd0c04735f526f3abf188
2023-10-04 20:14:31 +00:00
Gregory.Shrago
680b05cc40 add knownIssue sections for top issues
GitOrigin-RevId: ecdbaae189214f9985ba024184b25071279630df
2023-10-02 22:08:42 +00:00
Rustam Vishniakov
fe5e1bf04f [formatter] Add canChangeWhitespaceOnly flag to asyncFormatElement, must be true for ad-hoc reformatting.
GitOrigin-RevId: 73b7650d1a1667a760d88317d12431ab808bcec9
2023-09-21 09:57:00 +00:00
Rustam Vishniakov
ce7160f12d [formatter] asyncFormatElement() utility method
GitOrigin-RevId: 1e938b3fcb6526324a28d3568c4b280835c2e28b
2023-09-21 09:56:53 +00:00