Commit Graph
299860 Commits
Author SHA1 Message Date
Mikhail Golubev 55e52c42b6 PY-46361 Don't suggest stubs from legacy python-skeletons for auto import
GitOrigin-RevId: ec56e579d0240cb03b2f16bb468b7a1be6a95762
2021-01-08 16:51:06 +00:00
Mikhail Golubev 8910b97535 PY-36374 Remove redundant name parameter from ImportChooser EP
GitOrigin-RevId: 5c6426a1f1f423e3bdb0c4131bc36ae5448755cf
2021-01-08 16:40:55 +00:00
Mikhail Golubev d4324ef380 PY-36374 Remove unused "alias" parameter from PyImportCollector and its factories
GitOrigin-RevId: c2963e5191402c402d0c389ff4d07eebcd743b21
2021-01-08 16:40:52 +00:00
Daniil Ovchinnikov 93fbb17d04 consistent naming of TargetPopupPresentation properties
GitOrigin-RevId: 3890bec37366d02f80bd1d892ebc84afd9096695
2021-01-08 16:30:35 +00:00
Bas Leijdekkers 15de7bbd89 SSR: make java replacement template validation more strict (IDEA-201479)
GitOrigin-RevId: c46e39ec12126eda9db49b0c00f29cc3a37cf2e7
2021-01-08 16:26:56 +00:00
Artem Khvastunov b6078b77f4 GO-10265 ensure EOF sent after copying stream from input file
GitOrigin-RevId: ea80f6a24390d7027864f248019f55a4d80893af
2021-01-08 14:19:55 +00:00
Konstantin Bulenkov cf86cfc644 [New UI] rotate kebab icon, show light-weight popup for TW navigation
GitOrigin-RevId: 2c7d66f802e7ce23bd2f38b7e00571f502f75e25
2021-01-08 14:09:43 +00:00
Konstantin Bulenkov c75653c559 [TW Switcher] add methods to show the popup anywhere
GitOrigin-RevId: 63d01458a7077402c4e824e2b31343fd41406d79
2021-01-08 14:09:41 +00:00
Konstantin Bulenkov 771bf3a5f7 +AllIcons.Actions.MoreHorizontal
GitOrigin-RevId: f104efabce358224ced74bf7392bea2058a6caf0
2021-01-08 14:09:39 +00:00
Konstantin Bulenkov d7a0f5091a horizontal dots icon
GitOrigin-RevId: 622bafbf29d2d957a97ab9676672c0a4a2901d86
2021-01-08 14:09:37 +00:00
Anna Kozlova 25fd15c497 fix testdata after 1eefb61c33135667cd727ec495fea0d0ba1e7339
GitOrigin-RevId: 661b2974b36e4eced9df0e2bb1eaaaaaeea2e4ef
2021-01-08 13:26:20 +00:00
Bas Leijdekkers 959e74f6be keep inspection settings profile combo box sorted
GitOrigin-RevId: c171acf5dc59560f0604665d52da9d3952510850
2021-01-08 12:40:09 +00:00
Roman Shevchenko aacf70f39b Cleanup (warnings; formatting)
GitOrigin-RevId: 59c111de9a47932d85faf16d2c06deeed7f9b16c
2021-01-08 12:39:14 +00:00
Roman Shevchenko ea445ba366 Cleanup (IDEA-CR-70012)
(closing directory streams; dropping unnecessary conversions; migrating more methods to NIO2)

GitOrigin-RevId: 9d9f3cc4756aaca97d2a7a9618876f5093a10d58
2021-01-08 12:33:18 +00:00
Daniil Ovchinnikov 90fbe7953d convert TargetPopupPresentation to Kotlin
GitOrigin-RevId: 1993d8df0f3d58672f3debe46b0fbe7eba4cf01b
2021-01-08 11:59:04 +00:00
Daniil Ovchinnikov 56c9714e22 Rename .java to .kt
GitOrigin-RevId: 83de67c8f36884c0b4c05b0d7b09e3280b75bb60
2021-01-08 11:59:03 +00:00
Alexandr Suhinin a6f67cae1f IDEA-259023 refactor this: suggest Safe Delete for declarations only
GitOrigin-RevId: ad8a16589415a16ce8b4df2c8b16e2aed1fc6430
2021-01-08 10:43:42 +00:00
Dmitriy.Panov ac72177dfa option to ignore empty test suite
GitOrigin-RevId: ced13750aab3759f67921bd9f9ec991429c5f58c
2021-01-08 10:25:55 +00:00
Daniil Ovchinnikov 668f3aab29 add TargetPopupPresentation#getBackgroundColor and use it instead of taking the color from #getPresentableAttributes
GitOrigin-RevId: 7d5ce8301a67ef22705043040df1028df33d3f11
2021-01-07 23:49:20 +00:00
Daniil Ovchinnikov 65aafa428e [i18n] PsiElementTargetPopupPresentation
GitOrigin-RevId: ba45521a335b13853631552c16b5a18132087e95
2021-01-07 23:19:45 +00:00
Daniil Ovchinnikov 9688d015df add @Nls annotations to TargetPopupPresentation
GitOrigin-RevId: 2f6090e95641a07d476a28c42cce7be80f147bc5
2021-01-07 23:08:29 +00:00
Daniil Ovchinnikov 209914d452 clean up TargetPopupPresentation annotations
GitOrigin-RevId: b51c143e33fda9abba7ff73cfba4544f60058989
2021-01-07 23:08:28 +00:00
Alexey Merkulov 03de8c1e3a [IFT] Fix project content copying
GitOrigin-RevId: f28a0489512dfc07661320265222f4fbd0c4faed
2021-01-07 19:16:14 +00:00
Dmitry Jemerov a151c2db29 Look for module EPs in descriptor of core plugin if there are no modules currently loaded (IDEA-255042)
GitOrigin-RevId: d095d299dfe48096152f0b374cee10eadad3d8cf
2021-01-07 18:55:16 +00:00
Dmitry Jemerov b8e7608581 Look for plugin EP declarations in all loaded subdescriptors of a plugin (IDEA-255055)
GitOrigin-RevId: 7bc1afd7a902288c6d9a79d32e3ce78912d55520
2021-01-07 18:55:15 +00:00
Dmitry Jemerov bf032008e8 Refactor tests: use loadPluginWithText for all plugin loading tasks
GitOrigin-RevId: d8fa2d45a961245c860b533148622b0225f08399
2021-01-07 18:55:14 +00:00
Dmitry Jemerov 0b884f5a9a Refactor tests: simplify support for optional plugin descriptors in PluginBuilder
GitOrigin-RevId: cf3cca76b5cea3f57605fde8895d38da7cce6fe0
2021-01-07 18:55:12 +00:00
Svetlana.Zemlyanskaya abe415faac IDEA-254552 Remove outdated file with actions usage frequency
GitOrigin-RevId: b9a49b3791c58a4ef9eff0ebd88cd3144270df76
2021-01-07 18:53:19 +00:00
Svetlana.Zemlyanskaya 1b3eba486c IDEA-254552 Remove unnecessary rows and columns from action usage frequency
GitOrigin-RevId: 9dc70d5ada41fce85160e75be2f029c5fa8cdea4
2021-01-07 18:53:17 +00:00
Elena.Korotkova ae3727e0ad FIX RIDER-50417
GitOrigin-RevId: de0e9e04b755c59febedf283569988fa51b98345
2021-01-07 18:40:18 +00:00
Daniil Ovchinnikov e25cfb90bc add default ItemPresentation#getLocationString implementation
GitOrigin-RevId: 22555d540c23b5dc34560873c8ff64ab62c83bd6
2021-01-07 18:29:45 +00:00
Bas Leijdekkers fc06e1a491 SSR: rework dialog validation (IDEA-201479)
GitOrigin-RevId: a78aac65bbb1a45abc46f4800730d787cea9c071
2021-01-07 17:55:01 +00:00
Anna Kozlova 102b188350 cleanup
refactorings processors are short living objects and thus can't leak data

GitOrigin-RevId: 926db62710964be0a162a08cd9307ed4ecf07dea
2021-01-07 17:31:29 +00:00
Mikhail Golubev 4ca188384d PY-46358 Add the actual "as" part to local imports for common package aliases
GitOrigin-RevId: ad1061472e98c66ce3abc0e6d5e633ab271c2b41
2021-01-07 17:25:43 +00:00
Mikhail Golubev 6f5997ee45 PY-46356 Suggest qualified import names for common aliases
I moved the custom index lookup, previously used in PyImportCollector to find
modules and packages, to PyModuleNameIndex, already utilized in other similar,
places such as PyModulePackageCompletionContributor. Two new methods where
introduced to the interface of PyModuleNameIndex for that. The first one
is a generalization of  find(), allowing to re-use an existing search scope, and
the second finds modules by their fully qualified name in the same fashion as
it was done in PyClassNameIndex.findClass().

GitOrigin-RevId: 2de5821351eacf08ddc045454eea189b21fa1186
2021-01-07 17:25:41 +00:00
Mikhail Golubev 8e53b39d77 PY-36374 Exclude subpackages such as "numpy" from suggestions for common aliases
GitOrigin-RevId: 057d139dbe331154f5c4d0106d0e3564d9eda0b8
2021-01-07 17:25:39 +00:00
Mikhail Golubev 5d3a9d440e PY-36374 Clean up in ImportFromExistingAction and ImportCandidateHolder
* Remove some obsolete comments
* Simplify a redundant PECS signature
* Fix visibility of the fields in ImportFromExistingAction
* Make a precondition violation an IllegalArgumentException instead of assertion

GitOrigin-RevId: e37ea9974ac56f385f1993d6b953c522f564efe5
2021-01-07 17:25:37 +00:00
Mikhail Golubev 72ca3ddb8b PY-36374 Mention the alias when suggesting import variants with aliases
GitOrigin-RevId: 24c62c6ec4c9f6038acd641376c27b1047fb2256
2021-01-07 17:25:34 +00:00
Mikhail Golubev 46e8bf3f76 PY-36374 Don't pass the name to ImportCandidateHolder.getPresentableText
This name is now accessible directly as ImportCandidateHolder.getImportableName.

GitOrigin-RevId: d217b401e4bffbffd6f8d9b8d3179ea9db3bc295
2021-01-07 17:25:32 +00:00
Mikhail Golubev 57251de36e PY-36374 Enforce that ImportCandidateHolder stores a PsiNamedElement
Making it straightforward to retrieve this name from an element and not
have to pass it from the outside.

Deprecated stubs for AutoImportQuickFix.addImport() overloads, accepting
a "raw" PSI element, were provided for existing plugins.

GitOrigin-RevId: 899752ae9aa78a139eb0b6632ad9ca0d68e53337
2021-01-07 17:25:30 +00:00
Mikhail Golubev 3ba2747c51 PY-36374 When suggesting imports, don't shadow package aliases with namesake definitions
Previously, we suggested variants for these well-known aliases only if no
other symbols were found. In particular, having "np" name defined in the
sources of pandas prevented "import numpy as np" from being offered.

ImportCandidateHolder had to be refactored a bit to keep the name of
the corresponding symbol itself, because it used to be taken from the parent
AutoImportQuickFix, which now only holds the name of the reference, and, thus,
"numpy" ended up being imported as "import np as np".

Also, such imports are now suggested higher in the list than the rest.

GitOrigin-RevId: 75bed654431e81e6df40f1400ee4b02a4ab0dcca
2021-01-07 17:25:28 +00:00
Dmitry Jemerov dd3bf6e195 Since AsyncFileListener is created lazily, setup watch root for plugin reload in PreloadingActivity
GitOrigin-RevId: e8a0b723ee18542af3a5e25c6bf5a86da46fa583
2021-01-07 17:01:15 +00:00
Alexandr Suhinin db251eff72 IDEA-259050 refactor this: don't suggest Move Instance Method under constructor declaration
GitOrigin-RevId: f3fd88cdbc1ec8eb6cfd916673b4b22aea7e6f46
2021-01-07 16:08:03 +00:00
Alexandr Suhinin 6b0c0c462d IDEA-259050 refactor this: don't search target element to Move between all possible parents
GitOrigin-RevId: c558f8718dcc473878acff1e29a09b96d9824d6c
2021-01-07 16:08:01 +00:00
Nikolay Rykunov b6ec937b27 [space] Support unfurls in MCMessages
GitOrigin-RevId: 5ed588c7677782ba9aa34a251b4c9a1708150537
2021-01-07 15:52:43 +00:00
Nikolay Rykunov 91d96b84e7 [space] Support MCMessages in chats
GitOrigin-RevId: 3aec73df64976f459ce2671d7bacec66dda29680
2021-01-07 15:52:40 +00:00
Anna Kozlova 4a13a47245 tests import: ensure escaped (IDEA-258694)
GitOrigin-RevId: 37c0b0c1bd976eb651aa135ce13e86f713ac3553
2021-01-07 15:14:09 +00:00
Alexey Kudravtsev a2233e727f move test for fix in IJ-CR-4970 away from SuppressLIIJspTest because it has nothing to do with jsp
GitOrigin-RevId: 84111526ca761cc9b4cb468371e4455ef5b0fead
2021-01-07 13:57:00 +00:00
Alexey Kudravtsev f1ad635d96 fix CME in tests
GitOrigin-RevId: 3cefab4cc5b5722c7e0baf8b32efca16284f1822
2021-01-07 13:18:12 +00:00
Dmitry Jemerov 91fd501361 Simplify logic (IDEA-CR-55750)
GitOrigin-RevId: c2a1c2f656a3df62fa03307813bb671a1b4bbbc4
2021-01-07 13:16:29 +00:00