Commit Graph

992 Commits

Author SHA1 Message Date
Yuriy Artamonov
0ad7df3289 [editor] IJPL-164140 Floating code toolbar is not configurable for JSON, XML, YAML and SQL files
(cherry picked from commit 9d3a74bf1433284ed0fb7e6e2b554926966110e7)
IJ-CR-148640

GitOrigin-RevId: 3c215330677d9e7730aaa04fbdd9fcffdbf3d7ba
2024-11-07 20:33:37 +00:00
Andrei Iurko
efbebbef0b [qodana] QD-9891 Add reviewed inspections categories and fix json schema validation
GitOrigin-RevId: 7ca2b2fde31a47b41b1940badee13d931bd91102
2024-11-06 14:28:05 +00:00
Nikita Katkov
56849ee0b9 [yaml] IJ-CR-147338 Mark EP declaration as internal API
(cherry picked from commit 147ce9e0744f4d6eb4e2a86593370e91e202afee)

GitOrigin-RevId: 60916dd598854dfe44c965af9e253168d4b1e5a2
2024-10-30 15:19:48 +00:00
Nikita Katkov
a1b3324aa9 [yaml] IJ-CR-147338 Add documentation to the recently introduced extension point
(cherry picked from commit e524f4c59adab9ef6877df039d53ad57cd5cc2a8)

GitOrigin-RevId: debd6e9731ef923e285554bb44a42036d954752e
2024-10-30 15:19:48 +00:00
Nikita Katkov
6b1d1b5a23 [yaml] IJPL-64341 IJ-CR-147338 Highlight tags the same way as anchors
(cherry picked from commit d41971272ff7002bebdc82b56a254ef2bca37ddc)

GitOrigin-RevId: 28e8d7ed305d363ca6b5bed11eafbd0679c15138
2024-10-30 15:19:48 +00:00
Nikita Katkov
e8ae304c95 [yaml] IJPL-64341 IJ-CR-147338 Check whether the given tag is recognised by a particular technology support in the JSON schema validation
(cherry picked from commit 5b1b800e6e16a9ca8674c398fde1255e35be2a0a)

GitOrigin-RevId: 8434f76bbcb0c2ebc14617b61119b17e909b09e5
2024-10-30 15:19:48 +00:00
Nikita Katkov
9136f0f7d5 [yaml] IJPL-64341 IJ-CR-147338 Introduce extension to collect known yaml tags corresponding to different technologies built on top of yaml language
(cherry picked from commit f747f667d17473fedcfe02452f4d70b218a0bf00)

GitOrigin-RevId: 34089fc0a4b7cafc94b3f55912d6843747884b0b
2024-10-30 15:19:48 +00:00
Nikita Katkov
4a273f51d8 [json + yaml] IJPL-163460 Implement fast exit for yaml deprecation inspection
There is no point in traversing schema if there are no deprecated nodes specified in it. So we first index the in-memory schema instance and perform fast exit in case no deprecation keywords were detected


(cherry picked from commit decd0a968fa3e04326b4fdeec3cdab01563439fb)

IJ-CR-147983

GitOrigin-RevId: 2f816ec1c9867bf9b81f560524917d274705fc1a
2024-10-29 15:56:11 +00:00
Yuriy Artamonov
7703401b52 [ui] IJPL-164017 Enable floating toolbar for JSON/XML/YAML
GitOrigin-RevId: 219d903159220d92ca1de77f24ed1c869550b368
2024-10-12 00:00:10 +00:00
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
Tagir Valeev
feb2ee9625 Warnings fixed (mostly redundant cast)
GitOrigin-RevId: 63bdb7f359a1a2cd37cb6a691b3d94db8ba3ce02
2024-10-11 08:10:27 +00:00
Vladimir Krivosheev
4a176d4c02 IJ-CR-146078 extract intellij.platform.bootstrap
GitOrigin-RevId: b79efc92829111228e83058e54381d8e02116b6f
2024-10-05 22:01:55 +00:00
Mikhail Filippov
f13d92e82f IJPL-150165 switch to invoke dynamic lambdas in Kotlin
GitOrigin-RevId: 63ba45a21874cc723917982996fce1a510b2a182
2024-09-05 11:19:31 +00:00
Mikhail Filippov
bf43f2fc01 IJPL-150165 bump Kotlin language and API version
GitOrigin-RevId: a59dc8ca214a5047773fccf1cf28a1e1b07acf68
2024-08-30 22:15:55 +00:00
Nikita Katkov
bd617bc548 [github] IJPL-157477 Split language injector to make it stop breaking other language injections into the same fragment
The github expression is now marked non primary language to inject, so other languages would be able to overwrite it

GitOrigin-RevId: 4ace39cba1856a488736238c8450768b87084c5c
2024-08-26 02:24:14 +00:00
Anton Lobov
ef0cd49c7c [json schema] improve the highlighting range and provide a typo quick fix for disallowed property inspection
GitOrigin-RevId: 11380194fc21750f07fde230dae6ad5b37362384
2024-08-21 18:52:53 +00:00
Gregory.Shrago
1f8f8acf33 drop trivial getDataForItem overrides
GitOrigin-RevId: 3bb46d30fc88d19510c8c6aba6d15b1dba839f03
2024-08-15 08:03:57 +00:00
Konstantin Aleev
f23dfed025 [yaml] key completion insert handler: fix removing lookup if the rest is spaces or comments
GitOrigin-RevId: c049f0c5c5cacd87f18e516bb8afedac55f3b27b
2024-08-13 14:08:43 +00:00
Max Medvedev
c795cec244 IJPL-155874 Make most of the spellchecking strategies dumb aware
If you see any problems with your spellchecking strategy, please feel free to remove DumbAware from it. Or, you can make it dumb-aware by avoiding using indexes in dumb mode

The only strategies that are not DumbAware at the moment are:
- JavaSpellcheckingStrategy
- JSSpellCheckingStrategy

GitOrigin-RevId: 74781cf1ebd9b58669396bf7b1c03a839019f12b
2024-08-09 20:25:06 +00:00
Konstantin Aleev
69b6a980fa [yaml] key completion insert handler: fix removing lookup if the rest is compound value
GitOrigin-RevId: dc7fdf233b0e13ce3d3b7035e0231f07ab3b9296
2024-08-09 18:43:50 +00:00
Nikita Katkov
28b1da45c2 [json] IJPL-159354 Unbundle JSON plugin from the platform
- JSON becomes a true plugin instead of a bundled module.
- New plugin's ID is intentionally set equal to the old module name so that external dependent plugins would not face difficulties migrating to the new layout.
- All discovered internal plugins that implicitly depended on the JSON module currently unconditionally depend on the plugin.
- Consider extracting optional modules in a subset of affected plugins: spring.boot, intellij.yaml, intellij.java
- Consider testing the following IDEs that bundle JSON extension using xml:include: writerside, rider
- Refactor PlatformLangXmlPlugin to avoid api breakages

GitOrigin-RevId: 7d92b0c5905154c4f6f25d55f3246e79da79e278
2024-08-06 21:52:25 +00:00
Konstantin Aleev
36a929c19d [yaml] IDEA-210113 key completion insert handler: fix removing lookup if it is the only key value with colon
GitOrigin-RevId: 48c750e214e352a09b52921d2dbdafc695a608a9
2024-08-02 17:30:56 +00:00
Konstantin Aleev
43881d845a [yaml] IDEA-210113 key completion insert handler: fix removing lookup if it is the only key value
- add tests
- change empty mapping message severity to error

GitOrigin-RevId: eeba7b1f908af68715bcb079439dfae5799aa50a
2024-07-28 11:48:59 +00:00
Vladimir Krivosheev
398ebce1d5 split content report
GitOrigin-RevId: ef449bdf4c5480a6ee3ce43b4af118c2c6e31219
2024-07-25 19:20:06 +00:00
Nikita Kudrin
cdf91bf213 [benchmarks] Renaming PerformanceTest* => Benchmark*
GitOrigin-RevId: 9963b84d51e1062acc262a8d3d3de1409a708e3b
2024-07-23 18:20:01 +00:00
Konstantin Aleev
cae2cda86f [yaml] IDEA-210113 key completion insert handler: fix removing lookup if it is the only mapping key
GitOrigin-RevId: de90d7777ffe47981a36483189f134493bb5f47d
2024-07-16 16:06:04 +00:00
Nicolay Mitropolsky
8e2bf4eef3 [yaml] IJPL-156466: don't add extra blank line on paste
GitOrigin-RevId: 5675f240df379f3cb35847172e7ee3a99916980b
2024-07-13 16:10:41 +00:00
Nicolay Mitropolsky
522a0aae8a [yaml] YAMLCopyPasteProcessor - reformat before changes
GitOrigin-RevId: 1d3848ffa568efade364337fe587b6199d56c633
2024-07-13 16:10:41 +00:00
Nikita Katkov
57d7d2f81d [yaml+remdev] GTW-8699 Moved copy-paste processor to the editing module to enable it in the frontend yaml plugin
GitOrigin-RevId: cdca62dcf9f4c93d40498f078852104144d4c0c0
2024-07-02 21:20:37 +00:00
Alexandr Trushev
9a8b55768d IJPL-797 intellij.platform.editor review internal API
GitOrigin-RevId: e20f201205580dd2817cb88bdd882194a79d0c5f
2024-06-18 21:58:34 +00:00
Nikita Katkov
b29ca8a465 [json] IJPL-63554 Introduced new tests for the updated JSON schema versions support
- if-then-else tests for smart and basic completion with different resolve logic
- dynamic anchors with overridden values
- unevaluated properties
- prefix items
- dependent schemas
- various new validations tests
- yaml and json coverage

GitOrigin-RevId: 63ec3d8176ef368a8c80ebcd3687fb3732412df3
2024-06-18 20:26:11 +00:00
Nikita Katkov
ba0a9dc16e [json] IJPL-63554 Use the new schema resolve API in dependent plugins
GitOrigin-RevId: a43d3c69c27b36f4e75b451ccdf972771014f5ca
2024-06-18 20:26:11 +00:00
Nikita Katkov
a8f366c941 [json] IJPL-63554 Made PsiWalker return the inspected KeyValue's key adapter if requested for the key PSI element
GitOrigin-RevId: 35e77e74a0200699bed9274adeb2341b423921d7
2024-06-18 20:26:11 +00:00
Tagir Valeev
440654c48f Pattern variable can be used fixes; other warning fixes
GitOrigin-RevId: 49f37e7f5d748be50ee66fdf66a5c9b98b1b7432
2024-06-18 19:55:23 +00:00
Yuriy Artamonov
514a6af057 [fus] IJPL-149278 Report file schema usages correctly computing value in NBRA
GitOrigin-RevId: 2b8639e9ab2cda0cfadfff9e4140b97921a38ddf
2024-06-17 20:24:55 +00:00
Andrey Belyaev
5bb45b3b70 [yaml] IJPL-155695 YAML Files: Items duplication when schema is defined for the file
GitOrigin-RevId: 3913bf3d3380810b8e467e48647889525dcf1932
2024-06-17 11:43:06 +00:00
Anton Lobov
2dbaae5046 [yaml] AMPER-693 When merging duplicated sections, scroll the editor to the result
GitOrigin-RevId: c0d95904bcff6720f978f69d75c9b3b7138d5cbd
2024-06-17 11:22:02 +00:00
Anton Lobov
3fa9e2e014 [json schema] nested completion refactoring - add a test for the broken case of in between properties and fix it
GitOrigin-RevId: 80f79dbee93de3f498a7d5fb94094a2272659f1c
2024-06-11 17:45:27 +00:00
Yuriy Artamonov
d98e914eda [yaml] IJPL-149279 File schema detector tests
GitOrigin-RevId: 5b74afaf5cdf3ff8a8b7b3a44c4505d16586f76d
2024-06-08 13:32:08 +00:00
Yuriy Artamonov
35c6f7c361 [aws] IJPL-149279 Report CloudFormation files usage
GitOrigin-RevId: 0d1bae06e4ff9d7d6fa978b1c7923047d37fbd03
2024-06-08 13:32:08 +00:00
Yuriy Artamonov
f62aeecccf [swagger] IJPL-149279 Report Swagger/OpenAPI files usage
GitOrigin-RevId: 3d9d1d227d6cbeb946cb890f4db8373f10dc3c56
2024-06-08 13:32:08 +00:00
Joffrey.Bion
bfe78c3f59 [yaml] IJPL-150017 Support commas for missing property fix in YAML hash mappings
The IncorrectOperationException was just a red herring. It's a symptom caused by
the invalidity of the YAML produced by the quick fix when automatically adding
multiple properties.

Basically, when adding several properties in a hash mapping (or "flow mapping"
in the spec terms - the ones with braces that look like JSON objects), the
separator between the properties was an EOL, but it's supposed to be an actual
comma. This led to a broken syntax after the first property insertion.

This was fixed by properly supporting commas for hash mappings.

GitOrigin-RevId: 84056029147a74c397493cc62a1baa58b5616125
2024-06-05 13:24:18 +00:00
Tagir Valeev
c773b5989e [json] SuggestEnumValuesFix: ModCommand
Also: tests; tests for injection; fix escaping bug in JsonStringLiteralManipulator

GitOrigin-RevId: 5d080937faa801c42dbc69d5c1a88a39301febbe
2024-06-05 10:42:25 +00:00
Maxim.Kolmakov
71168cb8a9 IJ-CR-135039 Replace usages of PlatformTestUtil.newPerformanceTest with PerformanceTestUtil.newPerformanceTest
GitOrigin-RevId: 4edcfadc23f7305d68b8c08cd6ae634ee4869a2e
2024-06-03 10:14:22 +00:00
Alexandr Trushev
9be0f1cb4f IJPL-878 Disable breadcrumbs by default in yaml files
It makes sense to disable it by default in favor of already enabled sticky lines

GitOrigin-RevId: 1a865c99aa03843127f9cc6d820e00e8c359b5a4
2024-05-17 11:34:28 +00:00
Anton Lobov
091a334790 [yaml] AMPER-550 IntellijIdeaRulezzz token shows up in completion
GitOrigin-RevId: 13572772a1d1860a078a89c8dbcc2dd2c59b58d4
2024-05-16 15:27:29 +00:00
Joffrey.Bion
bcceb38ba5 [amper][yaml] AMPER-528 Fix broken YAML due to formatting issues after adding a property
This issue seems deeper than just Amper. It seems to be caused by some formatting done after
a write action (doPostponedFormatting on writeActionFinished).

This commit is not a real fix but closer to a workaround: we pre-format the object that we
are inserting into.

GitOrigin-RevId: def33cdfad865a0af055cdd984165afd2a681c3a
2024-05-08 14:08:33 +00:00
Yuriy Artamonov
a7a91506ba [tests] IJPL-148944 Enable isIconRequired in tests
GitOrigin-RevId: c15b2e5e2ac70f21371cd610a666ad8d87e52053
2024-05-05 17:43:32 +00:00
Nikita Katkov
7f37f584a2 [yaml + remdev] IJPL-149085 Renamed yaml.frontback module to yaml.editing
GitOrigin-RevId: 91a878f1a58f714feff383afaf5be8688c663ad3
2024-05-03 00:04:37 +00:00
Nikita Katkov
54c29342b6 [yaml + remdev] IJPL-149085 Moved missing resource to the frontback module
GitOrigin-RevId: 5a92cb1cceeb2ccfd483fd1632977ca24f15a3a3
2024-05-03 00:04:37 +00:00