84 Commits
Author SHA1 Message Date
Andrei Iurko 4111cfc875 [qodana] QD-9891 Add aspects with the highest certainty for inspections
GitOrigin-RevId: 8fad66714287192bd5cbc8396a3d30f1ba139302
2024-10-11 14:49:57 +00:00
Vladimir Krivosheev 4a176d4c02 IJ-CR-146078 extract intellij.platform.bootstrap
GitOrigin-RevId: b79efc92829111228e83058e54381d8e02116b6f
2024-10-05 22:01:55 +00:00
Alexey Kudravtsev 92996cecaa several optimizations for speeding up getFileType() (part of IJPL-162944 speedup find usages in kotlin files):
- Do not query FileTypeOverrider extension point in hot path; store in fileTypeOverriderCache instead
- Store FileTypeManager instance in FileTypeRegistry field to avoid indirection in hot path
- Use fields to store some services queried in hot path
- perform modifications under myPendingInitializationLock.writeLock() to avoid corruption

GitOrigin-RevId: 9a6ec245f31a779542e2e830089573e8ce25333b
2024-09-30 17:53:45 +00:00
Alexander Lobas 932f2d438e Swap icon path parameters: move expUI path to the first place
GitOrigin-RevId: 74cf09fb454c89b676be259cdd7437a81ac4c067
2024-07-25 15:12:07 +00:00
Alexander Lobas 89d58ee436 IJPL-150231 Move icon mappings from json to icon generator
GitOrigin-RevId: 4d4576fc7eeb92ec43c36abec2d62d271b45d9a4
2024-06-15 23:19:46 +00:00
Yuriy Artamonov 59597eb185 [platform] IJPL-938 Deprecate public utils in com.intellij.refactoring.suggested
Update usages

GitOrigin-RevId: d56e13ad1631e92d900ded8d89edbed7bf214c41
2024-03-29 22:09:46 +00:00
Vladimir Krivosheev 8dd13764a9 IDEA-326151 update hash algo for icons
GitOrigin-RevId: bb8f3acd0314190362619afb86151270b893f082
2023-08-09 14:46:20 +00:00
Piotr Tomiak dd42335edb WEB-53719 WEB-54398 Use multi-line LiteralTextEscaper for XML text injections
GitOrigin-RevId: 17a5b776c71d1fbf7c79e41a5d6f910c641ea172
2023-06-28 21:16:34 +00:00
Arseniy Pendryak d5f517da76 IDEA-315792: check parsing with initial whitespaces
GitOrigin-RevId: db21b43f08ef6bdf3d4ee9b4a2253bc54f650b56
2023-05-30 00:01:17 +00:00
Christophe Rhodes eb17f1b189 IDEA-315792: Handle initial whitespace in Toml files
If there is initial whitespace in a Toml file, it is logically next
after a newline (in terms of parser states) despite that whitespace
not actually containing a newline character.

closes https://github.com/JetBrains/intellij-community/pull/2360

GitOrigin-RevId: 81ae8b3e97e83a3997d5da8e2303b0acc708f108
2023-05-30 00:01:14 +00:00
Alexey Kudravtsev 6d9ab19f5b add missing method createConcurrentSet(); port existing usages with corresponding SSR
GitOrigin-RevId: 00645c36006d38198e8222030cf5ddd7ad7c8bf8
2023-04-21 17:31:35 +00:00
Arseniy Pendryak 43db24a541 Move intellij.toml.tests module to better location in filesystem
GitOrigin-RevId: 4f22a62c9cf821a8c7b82a991d699a498c6eb084
2023-03-26 14:04:35 +00:00
Arseniy Pendryak 91d155ff39 IDEA-313615: migrate TOML lexex to jflex 1.9.1
GitOrigin-RevId: 1a310abab8eca83096d0695c72ef13a23d5e5b02
2023-03-26 12:19:27 +00:00
Arseniy Pendryak 343d26e3a4 IDEA-315791: minor lexer and tests improvements
GitOrigin-RevId: 622f4d1dd61ffc4b63a96d86766abc1b0fac6a80
2023-03-26 00:16:50 +00:00
Christophe Rhodes 90cef8659f IDEA-315791: Fix a Toml lexer bug
Leading zeros are allowed in float exponents, as documented at
https://toml.io/en/v1.0.0#float.  An example valid Toml file
which the current implementation fails to parse correctly is:

```
flt5 = 1e06
```

as in the Toml documentation referred to above.  Include this
example in the parsing tests.

closes https://github.com/JetBrains/intellij-community/pull/2338

GitOrigin-RevId: 1a27f2f546a24791b17fd77ee2fa0e5499432a6b
2023-03-26 00:16:48 +00:00
Vladimir Krivosheev 6dbda83b26 use komihash for icon classes to align rasterized key with a runtime cache key (same algo)
GitOrigin-RevId: fec04acb91d4a69d5c50571d3408c9b0ce3fddd4
2023-03-24 15:49:56 +00:00
Vladislav Rassokhin 0f2b5b5b77 Prepare for restart check in all lexer tests
Don't use `LexerTestCase.doTest(String, String, Lexer)` without need

GitOrigin-RevId: b15679a15e28e3f67dba0149dfa075913f35fe4b
2023-03-23 12:02:15 +00:00
Daniil Ovchinnikov 578eaaf60e rename library kotlin-stdlib-jdk8 -> kotlin-stdlib
GitOrigin-RevId: cddf45ccfd5563d3fe209bea62a1c37c94f44ff9
2023-01-10 12:22:34 +00:00
Vladimir Krivosheev 98ace0a061 use XXH3 instead of MurMur3 to generate an icon image key
The main reason — use XXH3 everywhere

GitOrigin-RevId: 7b158b9b3689d16f09182abb0b58113c7303f874
2022-12-27 08:01:26 +00:00
Arseniy Pendryak 3bd99658e5 IDEA-305026: support intention preview for Expand into separate table intention
Also, fixes EA-698112

GitOrigin-RevId: e041aeec80527008dd0fae6bdb76d97f5dee2d74
2022-11-01 02:24:19 +00:00
Konstantin Bulenkov 995eed80a0 add icon-robots.txt for toml icons
GitOrigin-RevId: dfc123cf005f642486b3c04a3b8ed8ca93997f10
2022-10-27 10:38:11 +00:00
Konstantin Bulenkov 58e9acf35c IDEA-304413 Update TOML icons for the new UI
GitOrigin-RevId: 89a5c70b1eaeb8ae6ae1be2dc852d6b8c569f5ba
2022-10-26 22:57:20 +00:00
Arseniy Pendryak b6ba1f1353 IDEA-303464: set low priority for default values for tables, arrays and strings
GitOrigin-RevId: 29d4619b1bfe9025f84df4f06b680a87d87850ff
2022-10-17 15:53:50 +00:00
Arseniy Pendryak 4a4f916caf IDEA-303464: don't suggest default values inside string literals
GitOrigin-RevId: cc0954f8b4ab368021c0587e85725bb93effd9d0
2022-10-17 15:53:47 +00:00
Yuriy Artamonov 5944129dcb [psi] Drop redundant overrides of ParserDefinition.getWhitespaceTokens
GitOrigin-RevId: 895d17c0a84c7a741a99e94128451d7ee2e35651
2022-09-05 21:01:58 +00:00
Yuriy Artamonov 06d1a33383 [toml] IDEA-295978 Do not load ElementTypes class eagerly on parser definition load
GitOrigin-RevId: d3908c82bb8207987a4d6d826e8eb5d8ab6cd2b6
2022-07-06 09:55:09 +00:00
Bart van Helvert 970ff60e8e Properly teardown test methods
Moves `super.tearDown` into a finally clause such that it gets executed even when an exception is thrown before it gets called.

GitOrigin-RevId: 51b257ada3a916ec5a8462445e67db50c86852bb
2022-06-15 17:44:16 +00:00
Dmitry Gridin bd88377b44 apply "Unused suppression" for .kt files
^KTIJ-6421

GitOrigin-RevId: 648ed7fe7e8ba8169ec3277995a59acef5ac232b
2022-05-20 15:47:22 +00:00
Daniil Ovchinnikov 2ba99ea824 deprecate PsiParserFacade$SERVICE
GitOrigin-RevId: 343d3419ec9f64acdbc1ff2bb8d2218b8c14d818
2022-05-18 07:55:01 +00:00
Arseniy Pendryak 42b0684258 IDEA-293807: Make plain text URLs as clickable in TOML string value
GitOrigin-RevId: e710b6e6c43bf06bd9893c0048ccfc585fdf350b
2022-05-11 10:00:39 +00:00
Aleksei Trifonov 679bc3f560 [toml] IDEA-288468 Provide completion for values
GitOrigin-RevId: b46aaa32f7f4c93b46d6d8545f0ea41b32dcb3bc
2022-02-21 22:01:19 +00:00
Nikolay Chashnikov 1e848d3d7d [toml tests] trim indent in expected text to fix TomlSelectionHandlerTestBase
InlineFile trims indent for 'before' text, so we need to do the same for 'after' text.

GitOrigin-RevId: 7a71f28d799dc9d64239cbf9c232cba2bceb72f1
2022-02-09 07:46:05 +00:00
Aleksei Trifonov e38295b5f5 [toml] IDEA-282154 Suggest only arrays and objects in table headers
GitOrigin-RevId: 495dcdd88a595d919d7fbff4c2de3c88e49f591e
2022-01-25 15:20:11 +00:00
Leonid Shalupov 55d25fb84d toml: correct test data path to be independent of current working directory
GitOrigin-RevId: 015782068773cf0cb0b4a6ad67b765719b17043b
2022-01-04 19:36:12 +00:00
Aleksei Trifonov 28c4c065c9 [toml] IDEA-284290 Correctly calculate position for nested array tables
GitOrigin-RevId: f6524d302502d89bab636c5b9f43ef3982682c74
2021-12-16 13:36:41 +00:00
Vladimir Krivosheev ed94f6f07b cleanup (reduce size of util.jar)
GitOrigin-RevId: 34d3f5a7473a369de1a16d0a3ac3a67bf371b512
2021-12-14 13:16:28 +00:00
Aleksei Trifonov fa8cca6230 [toml] IDEA-284287 Provide doc info using json schema
GitOrigin-RevId: ddf200d230ba711fee8d2379bb6dde22882cd8e2
2021-12-10 05:46:04 +00:00
Alexey Kudravtsev 4c0cb063e5 clarify FileTypeIdentifiableByVirtualFile.isMyType() method as not exhaustive "file belongs to this file type" but only as one of the possible checks, because otherwise too much code would need to be duplicated
GitOrigin-RevId: 3277a316a60082bd17f7ea7e263aed278ab93947
2021-11-22 15:46:30 +00:00
Vladimir Krivosheev 0429b0130d use murmur 3 32 instead of xxhash 64 for icon digests - reduce icon db size (mostly in memory, because on disk compressed using LZ4) and avoid loading extra classes on start-up (murmur is already used in classloader)
no collisions so far

GitOrigin-RevId: 1f41a238729772b4b3c4faa5de5cd1ccb9ec3f65
2021-11-19 09:43:32 +00:00
Alexey Kudravtsev e09b435b7d fix some FileTypeIdentifiableByFile instance inconsistencies with isMyFile(), add corresponding test
GitOrigin-RevId: 1d8752d1028c6aa5c5058583c41365d33ea1c4d4
2021-11-15 12:04:15 +00:00
Aleksei Trifonov ebc9104ad4 [toml] add initial json schema support
GitOrigin-RevId: 89cbbf259bb00388e1f986e307e7d0615e660b64
2021-10-28 19:30:48 +00:00
Arseniy Pendryak 6a1171601f [toml] IDEA-279924 extract strings plugin.xml
GitOrigin-RevId: 74d9a8072e745995c8dc337bbaf670b7d6b9ee9d
2021-10-13 05:44:50 +00:00
Arseniy Pendryak d607aa764d [toml] IDEA-279924 extract strings from inspections/intentions
GitOrigin-RevId: f75e352c588625c06cc3ff588baa80af4775fd29
2021-10-13 05:44:48 +00:00
Arseniy Pendryak 7c219e3d92 [toml] IDEA-279924 extract color settings strings
GitOrigin-RevId: 0d24d8e5e16773eadc04e4bb55ee04ea08014ff2
2021-10-13 05:44:47 +00:00
Arseniy Pendryak 75a3eaa018 [toml] IDEA-279924 extract file type name into bundle
GitOrigin-RevId: d18f8ddecf64ecbc1662e379026104473f0f1237
2021-10-13 05:44:45 +00:00
Arseniy Pendryak 74a0b359b8 [toml] IDEA-279924 introduce toml message bundle
GitOrigin-RevId: 6b9bbb50cc448df6435b01ba094ba5ef6311310b
2021-10-13 05:44:44 +00:00
Christophe Rhodes 16c27d5e50 [toml] Handle quoted key segments in getName
Keys `foo` and `"foo"` introduce the same named entity, and so
should have the same name.

closes https://github.com/JetBrains/intellij-community/pull/1754

GitOrigin-RevId: 2920a63b6a28fcfe374478434e2e017b7aaf502c
2021-10-06 20:12:26 +00:00
Christophe Rhodes 9c0e634333 [toml] Fix decoding multiline strings
TOML specifies discarding an initial newline character from
multiline strings, both basic and literal.  Make this happen
in String.unescapeToml.

closes https://github.com/JetBrains/intellij-community/pull/1754

GitOrigin-RevId: 4b394cab86775ec665f91badb061a28f28635c17
2021-10-06 20:12:23 +00:00
Vladimir Krivosheev 37c558925b cleanup - reduce usages of Trove (part 1)
GitOrigin-RevId: 70c2493ad34e8be63bdd59436122ab1d88850a68
2021-10-01 09:24:37 +00:00
Aleksei Trifonov 66e5ce4a67 [toml] extract core module
GitOrigin-RevId: c6cac93cf7f87fd82b10f481d8267139961510b9
2021-09-29 12:47:14 +00:00