Vojtech Balik
41c2210412
add debug messages to CodeStyleCachedValueProvider
...
GitOrigin-RevId: 9737567fa78a7eff993c34d71cac1fc5cbb59ffe
2023-08-18 08:30:27 +00:00
Rustam Vishniakov
04b2ce0d00
IDEA-327449 CodeStyleManagerImpl.lambda$scheduleReformatWhenSettingsComputed: move injection processing out of write action
...
GitOrigin-RevId: 7ba830d83c350a460431a37e6fcb030af39ad58c
2023-08-10 18:44:32 +00:00
Piotr Tomiak
604eeeb535
WEB-60812 Wrong AstFactory used to create XmlAttribute causes errors in the formatter and freeze on copy/paste.
...
Improve PSI debug output for doReparseTest and RangesAssert to catch incorrect class names.
GitOrigin-RevId: 19dff629f5ccd7599e9786424639a7e79305fa4d
2023-08-03 23:24:09 +00:00
Vladimir Krivosheev
b3ed61706f
cleanup
...
GitOrigin-RevId: 024ea0d5fecba0f32ec37799a4221c871a37cea6
2023-07-26 20:57:39 +00:00
Nicolay Mitropolsky
564b85079a
[code-style] IJ-CR-110934 reverting getLineIndent with useDocumentBaseFormattingModel flag
...
added in 70c66d8ef1519e5e8f87474052769ab8d790a763
GitOrigin-RevId: fe7585100d0be81063457565bf001c523f84315a
2023-07-17 19:36:37 +00:00
Tagir Valeev
a2c5327a0d
[model-branch] ModelBranch API mostly removed (IDEA-309887)
...
Only one use left inside Fleet; also something used in Kotlin library code
GitOrigin-RevId: a6d34b268fe286582bd4d68d0dec183aa30f93de
2023-07-14 22:49:39 +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
Rustam Vishniakov
1d485a6072
[formatter] Separate code formatting and injections processing [IDEA-323259]
...
GitOrigin-RevId: 633b40390bd37efe51f6ac261b298b30f6f196af
2023-07-04 17:08:47 +00:00
Vladimir Krivosheev
1b58424d31
convert DefaultProject to modern language (part 2)
...
GitOrigin-RevId: eee4b4f50b610aafc8a7e1c1450bc79e27337bc7
2023-07-03 17:34:33 +00:00
Rustam Vishniakov
2b2d2d060b
[formatter] Restore editor state in a single place, both for caret and scrolling position
...
GitOrigin-RevId: 0b65d446a539f8edb0a1c92d6b118eb7a958a347
2023-06-28 09:45:18 +00:00
Ilya Muradyan
a394586266
KTNB-262, editor: Fix postformatting for injected PSI elements that were marked as changed
...
MR: https://jetbrains.team/p/ij/reviews/108346
GitOrigin-RevId: f751b677d6540c1f4d8e72b7105dedf4bed46028
2023-06-23 21:42:58 +00:00
Tagir Valeev
52ae047ae2
[mod-command] Rework file creation (use non-physical directories); use in MoveClassToSeparateFileFix
...
Also: test for MoveClassToSeparateFileFixTest
Also: move psiUpdate implementation to lang-impl, as we need some dependencies there
GitOrigin-RevId: a74e295bb265eb951cff8680102b798d34ea14f7
2023-06-22 10:54:23 +00:00
Konstantin Ulitin
dad8234e04
[code style] keep cache softly referenced
...
GitOrigin-RevId: 02403892e2385bfc24df4595b5dbfa5e1da6bd56
2023-06-12 15:51:29 +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
Daniil Ovchinnikov
97f0a7fd3b
migrate usages of ModalityState.NON_MODAL to ModalityState.nonModal
...
GitOrigin-RevId: fb4855bfa90dbf384fed24871e4b28ab803847bb
2023-06-09 21:58:50 +00:00
Vladimir Krivosheev
4774bd531a
Replace CancellablePromise and a pooled thread executor with Coroutine in CodeStyleCachedValueProvider
...
In order to improve CPU utilization, this commit replaces the use of a pooled thread executor with coroutine in the CodeStyleCachedValueProvider.kt file. The most notable change is the start() function's implementation.
The start() function now launches a coroutine and properly follows the pattern of calling readAction and then dispatching the result to the EDT using dispatchers and withContext. The cancel() function has also been updated accordingly to cancel launched jobs.
Also, CodeStyleCachedValueProviderService was added as a project-level service for providing coroutineScope to the provider. This service will be used to manage and properly cancel coroutines related to CodeStyleCachedValueProvider.
These changes ensure that coroutines are used instead of promises for managing code style computation tasks, providing a more standardized and readable approach.
GitOrigin-RevId: 120e9968180ff19f4415933775cf3bea6a1683e7
2023-05-27 15:12:56 +00:00
Vladimir Krivosheev
ed2e4b48ed
convert CodeStyleCachedValueProvider to modern language
...
GitOrigin-RevId: 0505f79fcc6011fb9e8a378813b237ff40590eb5
2023-05-27 15:08:18 +00:00
Vladimir Krivosheev
fab452b10a
Rename .java to .kt
...
GitOrigin-RevId: f0ff52ad8620c685c4bf2edc1385a1c0302a5ac6
2023-05-27 15:08:17 +00:00
Vladimir Krivosheev
c4562b98a2
IDEA-319959 Ide hangs in exit in writeActionFinished - getApplication() is null
...
GitOrigin-RevId: 5eb1a2aeb77f5f9e09902a079dd12690142231a3
2023-05-15 18:38:59 +00:00
Tagir Valeev
af48a965a9
[code-style] Try to fix correctRangeByInjection
...
GitOrigin-RevId: 3de2be8544ee0f8bc3f6d5aa64ed49d3dfea9dac
2023-05-10 18:16:46 +00:00
Ilya Muradyan
f4224f2e77
[code-style, minor] Apply quickfixes
...
GitOrigin-RevId: 2b8d2869744c7d9eefb409eea4558f9b02fd32f1
2023-05-04 19:32:43 +00:00
Tagir Valeev
37a7d03a86
Warnings fixed
...
GitOrigin-RevId: dda48dcdee329d2085ff31ff5ab22eb5620cd42d
2023-05-04 09:46:23 +00:00
Tagir Valeev
2f7adef7de
[code-style] Avoid taking write-action when it's unnecessary (updating non-physical files only)
...
GitOrigin-RevId: 31fee424f1feed5b387ab1c310eab6b040af5ef3
2023-04-21 14:03:45 +00:00
Rustam Vishniakov
d5bf95e04b
[code-style] Expand VCS formatting ranges to changed lines only [IDEA-229587]
...
GitOrigin-RevId: 423f22e211529cbb63699e36b6a5e50ec0f43774
2023-04-21 14:02:55 +00:00
Rustam Vishniakov
7ab37beeb7
[code-style] CodeStyleManager refactoring for reformatting changed ranges
...
GitOrigin-RevId: b1daa6cbf034f8499d4aaaa839a2a43e35162155
2023-04-21 14:02:52 +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
Tagir Valeev
08c2f1922e
[code-style] Extract abstract superclass from PostprocessReformattingAspect
...
GitOrigin-RevId: c363487e45ebf2878f8b5b744af06a19624ddef3
2023-04-19 14:38:06 +00:00
Alexey Kudravtsev
69748cc505
cleanup
...
GitOrigin-RevId: 6b71b29df456677902b25dcae7767d4ad842bdf9
2023-04-18 15:16:47 +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
Alexey Utkin
d3f0373db1
CPP-32798 Enable clangFormat via status bar doesn't work
...
GitOrigin-RevId: 703521677e0ebfe7df1e6591aa33d93c82130198
2023-03-29 18:44:45 +00:00
T45K
0df5c5acd3
IDEA-300186 spock where table for Japanese Hragana and Katakana
...
closes https://github.com/JetBrains/intellij-community/pull/2115
GitOrigin-RevId: 0248a83b39fe3ab842c71783a704526884527848
2023-03-29 11:31:42 +00:00
Alexey Kudravtsev
cbf060942c
deprecate ObjectUtils.consumeIfNotNull, fix usages
...
GitOrigin-RevId: 576b7bbf18a6b1bc772c12dca24b82a4c8a5ad29
2023-03-13 17:41:58 +00:00
Valentin Fondaratov
226e748671
FL-18032 enable postprocess reformat for operations in file copy
...
This is exactly the same hack implemented for the intention preview framework so let's consider it a fine one.
GitOrigin-RevId: 769e6bcf63f3e50fc989751ce84383a22e1f1580
2023-03-03 16:17:39 +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
Nikolay Chashnikov
a59608d4b9
[util] API: improve API of AttachmentFactory (IJ-CR-102764)
...
Get rid of unnecessary methods, use String instead of Object.
GitOrigin-RevId: 0e706fcd5db2db2d6f0a2b22e1d872be70c0dc33
2023-02-13 17:16:10 +00:00
Nikolay Chashnikov
6f8ff1585a
refactoring: split AttachmentFactory class into two
...
Some of the methods from AttachmentFactory don't depend on classes from platform.core, so they were moved to a new AttachmentFactory class which is located in platform.util module (this is needed to remove dependency on platform.core from platform.workspaceModel.jps module, IDEA-252970). Methods which do depend on intellij.core classes were moved to CoreAttachmentFactory class.
GitOrigin-RevId: 8669ecdfbf6ecb844e415014ca736459dc3d0e96
2023-02-10 21:03:58 +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
Alexey Kudravtsev
77dc8d93ab
codeinsight: convert some private/internal classes to record to simplify code
...
GitOrigin-RevId: 1820f00e72361868b6748039011c39598a82655b
2023-02-07 19:32:27 +00:00
Alexey Kudravtsev
0a245dca8c
use more race-free RangeMarker.getTextRange() to fix stuff similar to "IDEA-312518 GeneralHighlightingPass: Invalid range specified", fix usages, add SSR
...
GitOrigin-RevId: 45fa7d2e2ae70c4427153b1833f8860dd770004b
2023-02-07 19:26:03 +00:00
Tagir Valeev
f456ed0604
Pattern variable can be used mass cleanup
...
GitOrigin-RevId: 55839bf0deca5f81d0f7eb5b1c190145a5ea0037
2023-02-07 13:58:20 +00:00
Rustam Vishniakov
24fe58f18d
[code-style] Fix post-processing logic and tests
...
GitOrigin-RevId: 99d867a00a4f0a9e285ad1836d77ee92c881fab1
2023-01-27 17:42:47 +00:00
Nikolay Chashnikov
2ea9052f16
cleanup: remove redundant '@author' tags from javadoc comments - 11
...
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: 29550c08664df748af410d5edb1bdbcbe4969dc5
2023-01-18 17:02:01 +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
Rustam Vishniakov
cf01dba0e6
[code-style] Fixed IDEA-310165 IllegalArgumentException on opening jar file diff
...
GitOrigin-RevId: 9e80b6c11eba2d78b0df43c3114e275fe08a20da
2023-01-17 15:41:12 +00:00
Rustam Vishniakov
e44e7a36d1
[code-style] Get rid of undo() method in EditorFacade
...
GitOrigin-RevId: 14f899543bc6e21ebf2f3e8e35e482a4b596abd7
2023-01-13 18:57:24 +00:00
Rustam Vishniakov
c5a571b08c
[code-style] Move CaretPositionKeeper to platform.ide.impl via CodeStyleManager.Listener
...
GitOrigin-RevId: a8f4f3f8a54d1df977d465a8dcc46b79b604187f
2023-01-13 18:57:21 +00:00
Rustam Vishniakov
cd796601a4
[code-style] Get rid of unneeded editor parameter
...
GitOrigin-RevId: 287220e2522b6f5d154f72232d925c5461ac7cd5
2023-01-13 18:57:18 +00:00
Rustam Vishniakov
e0344d1551
[code-style] Move editor-based hard line wrapping to PostFormatProcessor
...
GitOrigin-RevId: 28eb751e7c41420ab1547485a37ceec6774eb4dd
2023-01-10 18:32:07 +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
c8017c233b
[code-style] Simplify FormattingProgressTask, add cancelled() method to callback
...
GitOrigin-RevId: 5d202a42df4ff2805d7aafcc7a3fd6b264fe823d
2023-01-10 12:13:42 +00:00