Commit Graph

157 Commits

Author SHA1 Message Date
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
Aleksei Trifonov
a066ca76da [toml] specify .editorconfig
GitOrigin-RevId: c43d9a0cf29f323e5a421da06f26ea23990a3fe2
2021-11-24 11:15:54 +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
Arseniy Pendryak
211a8edb27 [toml] migrate to new plugin model
GitOrigin-RevId: f3f34ad13486cfb82682c91381529460396f4adb
2021-09-09 21:30:17 +00:00
Arseniy Pendryak
b9b7cc9b3f [toml] merge toml manifest files
Also drop redundant changelog section

GitOrigin-RevId: a7d1d0c9af613384ed3a6c353678b16447adb77a
2021-09-09 21:30:13 +00:00
Arseniy Pendryak
56925df384 [toml] merge resource directories of main toml module
GitOrigin-RevId: 194c800aa0fbfc3737fcd1f811704e0994dc2bf7
2021-09-09 21:30:09 +00:00
Arseniy Pendryak
85efe732ef [toml] generate TomlIcons class
GitOrigin-RevId: d208b4828526a85ec4c07ce661ffe9cce1d2b8cb
2021-09-09 19:48:08 +00:00
Arseniy Pendryak
44c83e8f93 [toml] merge intellij.toml and intellij.toml.core modules
GitOrigin-RevId: ceb1f778275b6d4ab6daf55c5f6a6c9c891c9882
2021-09-09 19:48:05 +00:00
Arseniy Pendryak
eece92aec3 [toml] Configure module structure
GitOrigin-RevId: ac7ae45ee6c3681db8056085c9255ef365fda2d1
2021-09-09 19:48:01 +00:00
Arseniy Pendryak
9800fb75d1 [toml] inline openapiext package
GitOrigin-RevId: 9155f62cb71df25e2723852231481cc28794f577
2021-09-08 14:45:26 +00:00
Arseniy Pendryak
0a9b42095d [toml] move classes to correct packages
Some classes had `com.intellij` package because in the original repo there were two different modules that were merged into single one in IDEA monorepo

GitOrigin-RevId: b7fba275956d895fafc48175bf8f8fd93f4aae88
2021-09-08 14:45:23 +00:00
Arseniy Pendryak
e63e7bc0af [toml] make tests work
GitOrigin-RevId: 07673dc99d6057df2e0c3bcd8535272b94e1f2cf
2021-09-08 14:45:21 +00:00
Arseniy Pendryak
3f0567b377 [toml] Add generated lexer and parser
GitOrigin-RevId: e129d02d109aad9652dbe35bb9f763f94e4105d3
2021-09-08 14:45:18 +00:00
mchernyavsky
f83a23b01d Fix Qodana warnings
GitOrigin-RevId: c66192c0d6c3fb44da0dd549491f93c68ad0e49b
2021-09-08 10:44:43 +00:00
Arseniy Pendryak
a6dbf7e120 T: basic test classes for annotation checking with actual toolchain
These new test infrastructure classes should simplify addition of new annotator/inspection tests that require actual toolchain

GitOrigin-RevId: 484d24d592b4cb6013e8c9fb87755ff821727dfc
2021-09-08 10:44:41 +00:00
Dmitry Murzin
8fb7eb1451 T: Run tests with new resolve on CI
GitOrigin-RevId: 5bfbdcc039cbe45e5e544d6ad13d29fbff7e0ddb
2021-09-08 10:44:39 +00:00
Arseniy Pendryak
153c616b25 Fix some deprecations
GitOrigin-RevId: 29e958ec7e3563a26be5c5aeaca4468349a20fb5
2021-09-08 10:44:37 +00:00
Arseniy Pendryak
4848baee53 Use PsiBuilder.rawLookupText
Extract `PsiBuilder.rawLookupText` into `common` module and use it instead of `PsiBuilderUtil.rawTokenText`

GitOrigin-RevId: 0f267727fb2f8a74e3eef8e5f1cf110199407f03
2021-09-08 10:44:35 +00:00
Arseniy Pendryak
ef977d27a6 #5776: introduce BatchMode annotation
It's supposed to be used to check annotator behaviour in batch mode since there isn't a way to set batch mode via API of platform test framework

GitOrigin-RevId: 51d387460ae85b8b14dc89619c2d7e612ff90a23
2021-09-08 10:44:34 +00:00
Arseniy Pendryak
613cc5967b Fix or disable some deprecations
GitOrigin-RevId: f949475b5b3a72f567e2a09566feb6ecae8c5c88
2021-09-08 10:44:32 +00:00
ortem
49c14d8d6d Replace Application.isInternal with isInternal
GitOrigin-RevId: 83cc62ec3960d81c439c808311aff27a71e68421
2021-09-08 10:44:30 +00:00
ortem
37bfae3e6a Replace Application.isDispatchThread with isDispatchThread
GitOrigin-RevId: a77a8a868122b6159d4eca2d2be6f6ca8651302d
2021-09-08 10:44:28 +00:00
Arseniy Pendryak
a77080aba1 TOML: provide API to unescape toml string literals
Also, move some common code between Rust and Toml plugins to `common` module

GitOrigin-RevId: 11144029ebb5d99ac11e82b4517f24407d7b800d
2021-09-08 10:44:26 +00:00
Arseniy Pendryak
4ea1185886 TOML: introduce kind property for TomlLiteral
String kind also provides API to get offsets and value of string literals (similar with Rust literals)

GitOrigin-RevId: 591e42fdb9557ce731cc54e8f6f609f854d41a79
2021-09-08 10:44:24 +00:00
Arseniy Pendryak
d722a1fd10 Move common literal-related API to common module
GitOrigin-RevId: f891f486c81c42869f3a66df6f77f6c93a049624
2021-09-08 10:44:22 +00:00
Arseniy Pendryak
a30a7b18d4 T: move RsTestSeverityProvider as TestSeverityProvider to common module
GitOrigin-RevId: 786eba49df3ab1e4fbaef2d0bb56a77301cca7d0
2021-09-08 10:44:20 +00:00
Arseniy Pendryak
f4d45e85f1 T: introduce AnnotationTestFixtureBase in common module
and move all common code about annotations from annotator and inspection tests to it.
Also, create `RsAnnotationTestFixture` with Rust specific code

GitOrigin-RevId: 5b6d1186a93e8697fe052d9985d975d8abf484c3
2021-09-08 10:44:18 +00:00
Arseniy Pendryak
ef9115ecc3 Move some common code to common module
* `isUnitTestMode` and `isHeadlessEnvironment`
* `RsAnnotatorBase` as `AnnotatorBase`
* `Testmark`

GitOrigin-RevId: 24d66997bf16a09cff2a045b3b5abccd1c9cf6d8
2021-09-08 10:44:16 +00:00
Arseniy Pendryak
7077a76d83 Drop ext package from common package
GitOrigin-RevId: 6802e73e136d3b1bb224a35647911c7f6c9d1e78
2021-09-08 10:44:15 +00:00
Arseniy Pendryak
ffaa85337b TOML: introduce escape lexer for Toml
GitOrigin-RevId: 12a2b531520ec93dcda71cfb2d82e3dc43f2ffde
2021-09-08 10:44:13 +00:00
Arseniy Pendryak
cb8fe4eeff T: Move common code for lexer tests to util module
GitOrigin-RevId: 9354ec213b179eb3e7a0430c1907856436c2628c
2021-09-08 10:44:11 +00:00
Arseniy Pendryak
15305f0aa8 Move LexerBaseEx to utils module
GitOrigin-RevId: 791f3df41b1d3bc45880fa3bb28212c51ac7a13a
2021-09-08 10:44:09 +00:00
Aleksei Trifonov
4a422e5b56 INT: Implement intention to expand inline tables into full ones
GitOrigin-RevId: 5e74c5cc026ef4248b6ceaab887d03c82b839c63
2021-08-13 08:36:37 +00:00
Aleksei Trifonov
67c985b493 ANN: Annotate trailing comma in toml inline table
GitOrigin-RevId: d71e464787dec1f1f13f7350e41a55d19fe34013
2021-07-06 13:31:12 +00:00
Arseniy Pendryak
11e6eaf6e9 TOML: restore missing icon for TOML files
It was wrongly moved into test sources in #7348

GitOrigin-RevId: 2b3d27e7c9d30258351b165a9266ff8f36d4f8b6
2021-07-05 11:00:50 +00:00