Commit Graph
388860 Commits
Author SHA1 Message Date
Daniil Kalinin 290595da24 PY-24540 Fix extra space mistakenly added by Fill paragraph action
Fix tests according to the changes

Merge-request: IJ-MR-98042
Merged-by: Daniil Kalinin <Daniil.Kalinin@jetbrains.com>

GitOrigin-RevId: fb28eb2b435eb71430beaa4c243644daf04e37a6
2022-11-15 10:20:25 +00:00
Kirill Likhodedov 8160777075 settings-sync: statistics: fix misprint because of which we didn't add some metrics to the returned result
IDEA-305360
IJ-CR-97906

GitOrigin-RevId: 244c9fc24e1fe164870aa5b37900e4efdcc66522
2022-11-15 09:13:49 +00:00
Kirill Likhodedov 6b63529052 settings-sync: statistics: make names for events follow the convention, merge a couple of events
IDEA-305360
IJ-CR-97906

GitOrigin-RevId: f7e0fafca33529c17639e98efff41c7deb2ada7b
2022-11-15 09:13:48 +00:00
Kirill Likhodedov 3957b27482 settings-sync: statistics: make names for state events follow the convention
IDEA-305360
IJ-CR-97906

GitOrigin-RevId: baecc251252ef82541ad8e7c58be0a0fc40b04dc
2022-11-15 09:13:47 +00:00
Kirill Likhodedov d7b2380ec6 settings-sync: statistics: make names for event groups follow the convention
IDEA-305360
IJ-CR-97906

GitOrigin-RevId: 7fdb548bf07c6c00546f47c928fc2645c7e0337e
2022-11-15 09:13:45 +00:00
Kirill Likhodedov 798741837a settings-sync: statistics: inherit from correct class
IDEA-305360
IJ-CR-97906

GitOrigin-RevId: 45a7c3945449d7922c09c0f162e4109b7370631e
2022-11-15 09:13:44 +00:00
Kirill Likhodedov c3e0be5566 settings-sync: fix test checking if the 'deleted' snapshot is on the server
GitOrigin-RevId: 18a2d4d014f00b63a665b0432e62080160b5fb23
2022-11-15 09:13:42 +00:00
Dmitry Kichinsky a96de4aa84 IDEA-306034 Performance optimization: iterate over all maven ids -> iterate over those with the required artifactId
GitOrigin-RevId: e887caa1d438b04671505f66e691252e356fa792
2022-11-15 09:01:02 +00:00
Dmitry Kichinsky 821ebfbb84 IDEA-305988 Performance optimization: instead of retrieving dependency versions one by one, retrieve all at once
GitOrigin-RevId: ee49e7dfdd12175f618fa06294146cf891ecc2d1
2022-11-15 09:00:59 +00:00
Dmitry Batkovich b5ba09d72b warmup: flush all of MergingUpdateQueue-s
GitOrigin-RevId: b63ca37d98a9f917d1690b6cfb9e184b7b5bfea1
2022-11-15 08:14:19 +00:00
Dmitry Batkovich e431dbb226 warmup: remove module count reporting since it might be wrong and more modules can be detected further
GitOrigin-RevId: 34a33fad60cdbda8437089ed7927cce2999329e6
2022-11-15 08:14:16 +00:00
Nikolay Egorov bfc1d2791f Make KotlinCallChainHintsProvider open to support hints for Kotlin Notebook
GitOrigin-RevId: af0ea14a4208d3cf8a07f391158c6fe3d8bef59a
2022-11-15 07:46:04 +00:00
Roman Shevchenko 323a55bc04 [platform] ignoring degenerate paths in FileUtil#deleteRecursively (EA-743016)
GitOrigin-RevId: 6be5e0074f9fbf9379247c33c9dfac56959e7451
2022-11-15 07:11:40 +00:00
Roman Shevchenko 691f7b4023 [platform] handling temp. directory creation errors in "save as template project" action
GitOrigin-RevId: 47b0fbc5464cbb9d943cc3f3d003f99f5013c910
2022-11-15 07:11:36 +00:00
Roman Shevchenko 9337ad1361 [vfs] a quick-and-dirty fix for incorrect modality state leaked into a context (EA-707226)
[tests] more `NioFilesTest` cases in attempt to catch an elusive I/O exception (EA-743016)

GitOrigin-RevId: eb041db36a7bf531aafcbb0ed69bb09af2fceb7b
2022-11-15 07:11:33 +00:00
Bart van Helvert ed97392354 [java] Suppress capitalization warning
GitOrigin-RevId: 9f30dc1003c3ce22a3adb1b082c29a40def1f28a
2022-11-14 23:46:56 +00:00
Bart van Helvert 443ccf54b6 [java] IDEA-305389 Fix freeze in surround with cast
GitOrigin-RevId: 8511dd38e1eb7a8a65e85cf803f90dfebf0301ef
2022-11-14 23:46:53 +00:00
Dmitry Batkovich 4023fda1ba fix test according to new behaviour
GitOrigin-RevId: ce31298af3d9b21610f11abe2a4aeb574ff69453
2022-11-14 23:10:57 +00:00
Dmitry Batkovich 1c1556d3d2 index: remove nested index access exception since it's allowed for now (all indexes has their own locks)
GitOrigin-RevId: 67fc062cb0c1554a7929d36869f804edab8cd4bd
2022-11-14 23:10:52 +00:00
Ilya.Kazakevich c7ccd35a26 PY-57391: Filter Conda language levels for new envs
GitOrigin-RevId: a619242c400bba201eb2e096062add9b8529a7ff
2022-11-14 22:44:16 +00:00
Vladimir Dolzhenko c5142d33cb [kotlin] Align popup tooltip with quick fix and autocompletion suggestion
#KTIJ-20617

GitOrigin-RevId: 01e2ded7dd3439f732c76e3047469a0ca8700b46
2022-11-14 22:38:14 +00:00
Ilya Muradyan 92a1c3cc46 KTNB: fix NPE
^KTNB-76 fixed

GitOrigin-RevId: 14acc214666225e66b95174fc6a8b69839c088cd
2022-11-14 22:34:44 +00:00
Sergey Simonchik 03ce9e3099 light edit: support LightEditGotoOpenedFileAction in new file chooser
GitOrigin-RevId: 4c8941ba45e432a9eb80c4b25e60d7841e3256e2
2022-11-14 22:17:51 +00:00
Sergey Simonchik f0f9a73e9b light edit: get rid of SlowOperations.allowSlowOperations (IDEA-305670)
GitOrigin-RevId: 7f3d9546e4c0f11ec24598cc834569119fa13708
2022-11-14 22:17:48 +00:00
Alexander Chernikov 4438014ae3 Kotlin/JS inspection pack: autotests created.
^KTIJ-23629 Fixed

GitOrigin-RevId: 6c8d53dc05039b18081ec177d7631535f116c8b5
2022-11-14 21:27:10 +00:00
Alexander Chernikov cef87386a3 Moved Kotlin/JS inspection pack features into the main IDEA Kotlin plugin.
Inspections formerly implemented here: https://github.com/Kotlin/kotlin-js-inspection-pack-plugin and previously published as https://plugins.jetbrains.com/plugin/17183-kotlin-js-inspection-pack are now in the main plugin.

^KTIJ-23610 Fixed

GitOrigin-RevId: 58fc1f53ebc5b9a03527da03ce1b3d6aa585cbeb
2022-11-14 21:27:08 +00:00
Ivan Posti 1b64049311 [Markdown] Disable front matter support by default
GitOrigin-RevId: 554a3863d3e508c3b4f665d2facb8553ede38f1d
2022-11-14 21:07:31 +00:00
Marco Pennekamp a83fe50e9b [kotlin] New Inspection API: Minor fixes
- Replace `sealed` with `abstract` in inspection/intention base classes, as it causes sporadic exceptions in IntelliJ. (Likely an issue with binary compatibility of locally compiled classes.)

GitOrigin-RevId: 60005049a42b7f19a207f733ef9ce809fce8ed70
2022-11-14 20:43:49 +00:00
Marco Pennekamp e9e761caf3 [kotlin] New Inspection API: Fix forgotten renames
GitOrigin-RevId: 145e158aeb19ea65d749f25e9c64bf51519363b1
2022-11-14 20:43:48 +00:00
Marco Pennekamp 15d17b0ae1 [kotlin] New Inspection API: Minor simplifications
GitOrigin-RevId: 310a823f55202c545fcf5bf8a0d6f91183147b70
2022-11-14 20:43:47 +00:00
Marco Pennekamp ea7c3cfdad [kotlin] New Inspection API: API improvements
- Require `ApplicabilityRanges.SELF` to be specified manually with every intention/inspection so that the developer is forced to think about the applicability range.
- For inspections, rename `getFamilyName` to `getActionFamilyName` as this is the family name of the quick fix. The inspection's family name is configured via XML.
- Add `getProblemRanges` to inspections, which allows selecting a subset of applicability ranges to register the inspection's problems. The default implementation which selects all ranges should suffice for most inspections.

GitOrigin-RevId: 3762bc0c16878cabd229e6533dc0bf70313395bb
2022-11-14 20:43:46 +00:00
Marco Pennekamp ea36dd85a3 [kotlin] New Inspection API: Move and rename base classes
GitOrigin-RevId: 8493e0b8d87d8e376aef2147c14b72499a210b55
2022-11-14 20:43:44 +00:00
Marco Pennekamp 788b236fae [kotlin] Port applicator-based inspections to KotlinApplicableInspection API
- I've also changed the wording of several inspections. Family names and problem descriptions are worded as descriptions (e.g. "Redundant modality modifier"/"Redundant 'open' modifier"), while action names are worded as actions (e.g. "Remove redundant 'open' modifier").

GitOrigin-RevId: d806ee769fb9294f84f3bbc0b1a94a1a4163086f
2022-11-14 20:43:43 +00:00
Marco Pennekamp 95e18f8c86 [kotlin] Implement KotlinApplicableInspection API
- The new inspection API covers inspections which should visit a single element type and produce a single problem/quick fix. The API doesn't yet cover inspections that can generate zero or multiple quick fixes.
- Diagnostic-based inspections are also supported by `KotlinApplicableDiagnosticInspection`. Only a single diagnostic type can currently be specified. Multiple diagnostic types may be supported in the future.
- `KotlinApplicableTool` and its siblings are interfaces that allow sharing the common methods such as `getActionName` between the intention and inspection classes.
- `KotlinSingleElementInspection`, as a supertype of `KotlinApplicableInspection`, handles visiting a single element. This implementation was moved to its own class because it's more general than an applicable inspection.

GitOrigin-RevId: 25731acbfe9cafd57ba0cf906e28bc2e30c2246b
2022-11-14 20:43:42 +00:00
Jaebaek Seo 95a40dd059 [kotlin] Support K2 AddMissingClassKeywordIntention
^KTIJ-22950 fixed

GitOrigin-RevId: c83d270ad1acf33f0694bf39d839d53da1c559a0
2022-11-14 20:11:04 +00:00
Aleksandr Izmailov 04302d8442 [blocking call detection] IDEA-306008 IJ-CR-98467 remove check for binary expressions: calls and operators are possible
GitOrigin-RevId: 5aea656e2471d5a68ed090eb49d75bad33d54b14
2022-11-14 20:08:58 +00:00
Maxim.Kolmakov f155b59279 Set new project
GitOrigin-RevId: 4278015508e2558a3bfbeb63a4e2c503ac9038a7
2022-11-14 20:00:45 +00:00
Maxim.Kolmakov 8dcb970a6b Set results to Future, otherwise the action is never finished
GitOrigin-RevId: 851e2c2883502c7a4191bb9db4cf5135011174e2
2022-11-14 20:00:42 +00:00
Dima Golovkov cfe884a490 Add icons for Int UI for collaboration-tools
GitOrigin-RevId: 79c63ad25fc1ebb315542028bafbf270376c9d5f
2022-11-14 19:58:43 +00:00
Vladimir Dolzhenko e8fcb86c8a [kotlin] OCB has to be triggered on project reimport
#KTIJ-23496 Fixed

GitOrigin-RevId: 272915d2cc0c98feceaba39393eccf55b67f424d
2022-11-14 19:57:21 +00:00
Vladimir Dolzhenko e06f07804b [kotlin] Enforce check no error highlighting elements in performance projects
GitOrigin-RevId: d369df2a7566240adf5d82c3a26c619e9535b4c2
2022-11-14 19:57:20 +00:00
Tagir Valeev ba49de7b03 [java-intentions] EA-741594 - AIOOBE: RemoveRedundantArgumentsFix$ForImplicitConstructorAction.invoke
GitOrigin-RevId: e57bc39d9f506897ac92dd059f5d9d906b77ba1e
2022-11-14 19:56:54 +00:00
Tagir Valeev ef30944ea2 [java-intentions] Avoid showing error in preview
Fixes EA-746578 - T: LocalHintManager.getHintPosition

GitOrigin-RevId: d27561f6855ce284993a3e517cb196262dff679e
2022-11-14 19:56:51 +00:00
Tagir Valeev 76167de819 [lang] ConvertAbsolutePathToRelativeIntentionAction: null-check
Fixes EA-746616 - IAE: FileReference.$$$reportNull$$$0

GitOrigin-RevId: 84ef6d242da1f5daf4d9b157ff166c8be736ebd1
2022-11-14 19:56:48 +00:00
Dmitry Jemerov e0b1f2c579 Rethrow PCE from ColorAndFontOptions.initPluggedDescriptions (IDEA-304555)
GitOrigin-RevId: 54dd792a19fac0ffdcda033efcee30783dbb9134
2022-11-14 19:43:55 +00:00
Dmitry Jemerov 4c24ef53d9 Marshal file opening from external app to EDT (IDEA-301392)
GitOrigin-RevId: c9c6b165f4da3093cf8b009bcccade9434401954
2022-11-14 19:43:51 +00:00
Tagir Valeev 8a4487fa69 [spellchecker] ChangeTo: disable when document changed
Fixes EA-654994 - IOOBE: CharSequenceSubSequence.<init>

GitOrigin-RevId: 22b0e05a72db4dd083bbcca816ba25994e9e2c14
2022-11-14 19:29:24 +00:00
Tagir Valeev 0d121391d5 [java-intentions] ReplaceIteratorForEachLoopWithIteratorForLoopFix: support 'var'
Fixes EA-745826 - IOE: JavaParserUtil.parseFragment

GitOrigin-RevId: 08296c2f0b06ccaf87ad637155a97e3b5bfe8f99
2022-11-14 19:29:23 +00:00
Tagir Valeev 728b103169 [java-intentions] ReplaceForEachLoopWithIndexedForLoopIntention: support 'var'
GitOrigin-RevId: 54a0d7e4accc2f45069ab66e9b0eea4e46cde2fa
2022-11-14 19:29:21 +00:00
Tagir Valeev ea0e745c39 [intention-preview] IncreaseLanguageLevelFix: null-check
Fixes EA-746535 - NPE: IncreaseLanguageLevelFix.generatePreview

GitOrigin-RevId: 64d76327a40ee7c3102d791de435aa8d15e1bd17
2022-11-14 19:29:20 +00:00