Commit Graph

1154 Commits

Author SHA1 Message Date
Alex Plate
15d01811d0 [Workspace Model] [IDEA-320676] Move several WorkspaceListener to the new module
GitOrigin-RevId: 11b538f3488b1fa1fd5501bc228c0516c4e384d3
2023-06-19 09:35:24 +00:00
Alex Plate
0ea27da5c6 [Workspace Model] [IDEA-320676] Move all packages from workspaceModel to workspace folder
GitOrigin-RevId: b70062397efd6347c34431c24aacd2ec2e216897
2023-06-19 09:35:12 +00:00
Alex Plate
acde44da72 [Workspace Model] [IDEA-320676] Rename jps module of workspace model
GitOrigin-RevId: 146fda1ce8b8e436eb48070e8cf96f2c654ea6a2
2023-06-19 09:35:11 +00:00
Alex Plate
e18c7d8a5f [Workspace Model] Move sources of the storage under workspace package
GitOrigin-RevId: 013ce64337fe7b3637d731c1093a2337bbe71f22
2023-06-19 09:35:08 +00:00
Alex Plate
bfd595ae86 [Workspace Model] [IDEA-320676] Rename package of jps model (ModuleEntity and other related entities)
GitOrigin-RevId: 102135a4f66c4a12c9b1f95035b1607cb933825d
2023-06-19 09:35:04 +00:00
Alex Plate
ae72bfb1d9 [Workspace Model] [IDEA-320676] Move ModuleEntity and friends to other module without changing the package
GitOrigin-RevId: 2f92e16012b84d5c4505c55a887df3623b460a0b
2023-06-19 09:35:02 +00:00
Alex Plate
37c54118b9 [Workspace Model] [IDEA-320676] Rename base packages of the workspace model: com.intellij.workspaceModel
The rename of the packages is needed to follow the naming convention. See the attached ticket for the details.

GitOrigin-RevId: 24b2328e572efa23d67133fc495855cf662ea795
2023-06-19 09:34:30 +00:00
lada.gagina
e768aa3785 PY-40996 Add ability to collapse and expand python type annotations
"Collapse/Expand Python Type Annotations" actions, an intention and a setting

GitOrigin-RevId: e055538b29b07c1836399f52754b786a15351050
2023-06-16 19:08:16 +00:00
Trinh Anh Ngoc
c9f0c216a0 [PY-56210] Add id for PyModuleNameCompletionContributor
Allow other contributors to take priority over it if needed

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

GitOrigin-RevId: 06e7378ddb47a57dc8e934afcadd7f0d1b88bbb7
2023-06-15 20:21:10 +00:00
Daniil Kalinin
d5de282edd PY-17193, PY-10709 Don't use \ for line continuation by default
Adds a new option which allows to parenthesise call chains, import statements, string literals and binary expressions instead of using backslashes when splitting them to multiline by pressing Enter

Tests for PY-17193, PY-10709

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

GitOrigin-RevId: 964f6c997e1e106a3d1b82d24e46947cc83fb2c6
2023-06-14 19:11:31 +00:00
Daniil Kalinin
45bb1fffb8 PY-24273, PY-53703 Support for functions annotated with typing.NoReturn and typing.Never
Functions annotated with `NoReturn` and `Never` now taken into account in the Control Flow Graph building process, and the code after calling such functions is treated as unreachable.

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

GitOrigin-RevId: ef5840ae6e593498fc334dc9bd2daadccebf2b13
2023-06-13 22:08:30 +00:00
Egor.Eliseev
ca7085e665 PY-54839 Add _pytest.fixtures.fixture field to enum KnownDecorator
It is needed for `pytest` fixture function is not marked as one that can change the return type.
Now `pytest` fixture function returns `realType` instead of `Any | realType`.
See `PyKnownDecoratorUtil#asKnownDecorators`.

GitOrigin-RevId: c65334f2b15546f46ce5063be4c3952032bdb7c0
2023-06-13 13:59:31 +00:00
Alexey Belkov
55f582d5d3 Apply Kotlin inspection "Redundant 'if' statement"
GitOrigin-RevId: 2f93c77e56d8519431e8cc94f4ca2354003806b6
2023-06-12 14:45:50 +00:00
Andrey.Matveev
a3405094f3 [llm-python] Impl simple chat context provider and doc gen
GitOrigin-RevId: 569626162e4a24eb29c2c7d25b6c84aade847330
2023-06-08 19:36:49 +00:00
Daniil Kalinin
0be3de2af6 PY-36317 fix collection subscription statements wrongly reported as parameterised generics used in instance checks
Merge-request: IJ-MR-107037
Merged-by: Daniil Kalinin <Daniil.Kalinin@jetbrains.com>

GitOrigin-RevId: 16c3c61525d50dcaa99c56418bd64621d70e4e5f
2023-06-08 11:00:00 +00:00
Vladimir Lagunov
89649ae06b Revert "[fleet] Restored reactive loading of SDKs from settings.json after smart-mode activation (related to FL-19248)"
This reverts commit 08f87af551374373e8fd6b5e5133d4158c1e31de.

The commit 08f87af55 was de-facto a reversion of bab46cfcb44b86f2b6191b5c369f5170811eb98a.
During a private conversation it turned out that 08f87af55 was created mistakenly and unintentionally.

GitOrigin-RevId: ac8af8a3ee614f6afef2c10ab34bfc76b60edb7c
2023-06-07 09:06:16 +00:00
Andrei.Kuznetsov
897f449714 IDEA-320457: Move class to top level BaseFileTypeInputFilter.FileTypeStrategy > FileTypeSubstitutionStrategy
GitOrigin-RevId: 2f77cf9428129d5edd82a1e73d1afc8d661ff1f6
2023-06-02 15:17:41 +00:00
Alexander Kuklev
a30a8dbb5e [fleet] Restored reactive loading of SDKs from settings.json after smart-mode activation (related to FL-19248)
GitOrigin-RevId: 08f87af551374373e8fd6b5e5133d4158c1e31de
2023-06-02 10:20:08 +00:00
Egor.Eliseev
547fafc199 PY-30033 Support resolving for pytest.mark.usefixtures
Add 'PyTestReferenceAsStringProvider' for fixtures from pytest.mark.usefixtures attributes.
Add new field 'myTextRange' to 'BaseReference' class.
It's needed for specify the text range for proper highlighting.
For example, to highlight text in a string without quotes.

GitOrigin-RevId: 5b9094169b71dd57d9091d6907346ca69f631ef3
2023-06-01 09:35:11 +00:00
Andrei.Kuznetsov
78290856b2 IDEA-320457: migrate some indexes to IndexingHint (PyModuleNameIndex,PySetuptoolsNamespaceIndex)
to speed up indexing of java `.class` files. See IDEA-320457 for full explanation

GitOrigin-RevId: c53f7064e28155fea4121b56078948c571a4318c
2023-05-31 20:48:41 +00:00
Alexey Belkov
4467dc883b Apply Kotlin inspection "Unnecessary type argument" on whole project
GitOrigin-RevId: 70a38b512309685d57bb5eddf2fc5068f14fe481
2023-05-27 14:22:18 +00:00
Alexey Belkov
1d790f1992 Apply "Java methods should be replaced with Kotlin analog" inspection on whole project
GitOrigin-RevId: 35d07247cdf7742957dde59bbb8d6408754a9c4e
2023-05-26 09:44:56 +00:00
Alexey Belkov
a6521777bf Revert "Apply "Java methods should be replaced with Kotlin analog" inspection on whole project"
This reverts commit 9863c1e3

GitOrigin-RevId: 7fe730efd4ffe4fef76fe6f36c3e53b496067855
2023-05-25 07:09:00 +00:00
Alexey Belkov
b6d93b8569 Apply Kotlin "Cascade if can be replaced with when" inspection on whole project
GitOrigin-RevId: ada0c39387c508fde4bf361a0f5b17765d9c0240
2023-05-24 16:04:41 +00:00
Alexey Belkov
ebe914e465 Apply "Java methods should be replaced with Kotlin analog" inspection on whole project
GitOrigin-RevId: 9863c1e384067b97b5015147589e409facd37549
2023-05-24 16:04:31 +00:00
Vladimir Lagunov
c1bbf8fc74 DS-4508 PythonHelpersLocator: copy all helpers to the temporary directory
It turns out that there are parts of code that suppose existence of all helpers without requesting them in advance via API of PythonHelpersLocator. These parts broke down when helpers became copied to a temporary directory.

Merge-request: IJ-MR-107692
Merged-by: Vladimir Lagunov <vladimir.lagunov@jetbrains.com>

GitOrigin-RevId: bab46cfcb44b86f2b6191b5c369f5170811eb98a
2023-05-19 19:40:54 +00:00
Olga.Lavrichenko
b221598456 DS-4113 Columns are duplicated in completion suggestions in python console
GitOrigin-RevId: 527cfd230c94b229ccf2f5d5263ba1171614cabb
2023-05-19 17:53:17 +00:00
Daniil Kalinin
8df7dd2f21 PY-32302 Provide custom syntax highlighting for Python local variables
GitOrigin-RevId: af7099a6ba948c740c8183674b24eeeddf164e70
2023-05-18 19:12:18 +00:00
Alex Plate
c23aea3909 [Workspace Model] Migrate VersionedStorageChange to sequence instead of the list
GitOrigin-RevId: 0f6cdb7a1e9cdd3025b00f94cb1978c750199636
2023-05-16 18:07:09 +00:00
Nikolay Chashnikov
263508fe4b [python] API cleanup: remove unused deprecated API (IDEA-312594)
GitOrigin-RevId: 83ecfec5f4317ea0ab52089c4c6c8060f1cc5fc7
2023-05-15 13:56:53 +00:00
Natalia.Murycheva
0d53aa47df DS-4878 Pandas-specific-quick-fix-replace-listdf.col.values-to-df.col.tolist
Add new intention and a corresponding quick fix for the usage pd.Series.values property from pandas library.

^DS-4878 Fixed

Merge-request: IJ-MR-106089
Merged-by: Natalia Murycheva <natalia.murycheva@jetbrains.com>

GitOrigin-RevId: 0c8dc40b09ee2d95ecd8ded532f31f5ef4a7740f
2023-05-13 20:44:29 +00:00
Vladimir Lagunov
d5f8028bfa DS-4508 Prevent importing python helpers from installation directory
Merge-request: IJ-MR-107279
Merged-by: Vladimir Lagunov <vladimir.lagunov@jetbrains.com>

GitOrigin-RevId: bd5183320a43878de861fd11ae1f9bf79710290a
2023-05-11 09:54:15 +00:00
Mikhail Mazurkevich
246ec159cf Revert "[Workspace Model] Use set for changelog in WorkspaceModelChangeListener"
This reverts commit 2a3800e2

GitOrigin-RevId: a13574ba0b51c3eac11703febd59f7adea222d03
2023-05-10 18:31:41 +00:00
Alex Plate
7b20721031 [Workspace Model] Use set for changelog in WorkspaceModelChangeListener
This is needed for a clearer understanding of the API: there is no ordering of changes in VersionedStorageChange

GitOrigin-RevId: 2a3800e216d81e87e836f8bd19708b5ba74f496a
2023-05-06 09:32:47 +00:00
Alexey Kudravtsev
970ae99e6d use ContainerUtil.createMaybeSingularList() to simplify code
GitOrigin-RevId: 3474c183588944fa16fef901302492bf714aa815
2023-05-04 14:09:30 +00:00
Natalia.Murycheva
10f22bb2e2 DS-4558 Quick fix to split a cell for statement has no effect inspection
Added a new Extension Point for corresponding quick fixes for "Statement without effect inspection." Added QF for Jupyter notebook case and Python file with cells. This QF splits cell just right after the statement without effect

^DS-4558 Fixed

Merge-request: IJ-MR-104455
Merged-by: Natalia Murycheva <natalia.murycheva@jetbrains.com>

GitOrigin-RevId: 7773895cf1ebd6d4e8d56b41e335ec8b97ca5d78
2023-05-03 15:03:06 +00:00
Louis Vignier
1869ec9da6 [codeInspection] Fix python inspection descriptions
GitOrigin-RevId: 56876a5dd073a06c3fcc92f63ed1f5674830bc25
2023-04-28 13:13:25 +00:00
Mikhail Golubev
29bbb0faf6 [python] Get rid of TreeSets in PyNamedTupleInspection
Rely on the fact that PsiScopeProcessor processes class attributes
in the order of their definition.

GitOrigin-RevId: 0b39b0c6002c75d2af3b4988d3aa095823b33cb8
2023-04-26 13:16:47 +00:00
Mikhail Golubev
70fa9400f4 [python] Simplify PyNamedTupleInspection
Got rid of redundant inner classes and fields, removed repeated logic, used
more obvious control flow constructs.

GitOrigin-RevId: a04977afc8a0ceb213380b406e74e37dfc7cd49c
2023-04-26 13:16:47 +00:00
Irina Fediaeva
069ee247c0 PY-45381: Fix false-positive when overriden non-default fields follow defaults defined in parent dataclass
GitOrigin-RevId: ee08f0db368951ea8f02835f1af8c57fae34dabd
2023-04-26 13:16:46 +00:00
Egor.Eliseev
5de3620016 PY-57950 Quick Documentation not working in Python Console if the caret is at the end of the expression
IJ-CR-100091

GitOrigin-RevId: 5f651b03cd0c3f2caa145c2401523301c5f61f56
2023-04-26 10:08:00 +00:00
Daniel Schmidt
8e61858381 PY-57950 - resolve callee for argument list
GitOrigin-RevId: 5b418107c312d9a70110a351a87bb1163e72806f
2023-04-26 10:07:59 +00:00
Irina Fediaeva
3afa041f1b PY-32067: Highlight 'await' outside async functions as errors
GitOrigin-RevId: 9862d18848b3a826ba11e9c0e15e56a2c94bcc9e
2023-04-19 20:42:02 +00:00
Daniel Schmidt
abedaa8420 PY-39352 - use the more accurate term "CapWords" instead of "CamelCase"
closes https://github.com/JetBrains/intellij-community/pull/2403

GitOrigin-RevId: 09122e4c36fc6f40d9b79869152d0fd9f2fdeeda
2023-04-17 14:52:30 +00:00
Daniil Ovchinnikov
6fe5c49599 deprecate com.intellij.reference.SoftReference constructors
GitOrigin-RevId: a723be59b812f71953e79879d7adf09d58a9e935
2023-04-15 00:04:29 +00:00
Dmitrii Gridin
0627d87b40 [python] avoid redundant algorithmic complexity from getLanguageLevelForVirtualFile
^FL-18949

GitOrigin-RevId: 802e02344037d47058a7fcd983fe7902e847156a
2023-04-14 17:53:40 +00:00
lada.gagina
18590c0781 Sync with typeshed @ f611d18f70fd9f20797c832f10bba3bfb9d99e47
[PY-59793](https://youtrack.jetbrains.com/issue/PY-59793/Sync-bundled-typeshed-f611d18f70fd9f20797c832f10bba3bfb9d99e47-sep-22)

GitOrigin-RevId: 9dcaafbd9bf1bc6f077e130042883a7a0436961f
2023-04-14 12:44:45 +00:00
Irina Fediaeva
7379dc43c5 PY-49946: Support 'kw_only' in @dataclass args and dataclasses.field() args
GitOrigin-RevId: fe6f32a2cb8fa65b122968e1e9cf9d2126f92398
2023-04-12 17:59:46 +00:00
Ramazan Dzhekshembaev
1469475419 add template test for fix
GitOrigin-RevId: a192f2b50c5576c87d264bf893b0453fea032e17
2023-04-06 11:45:08 +00:00
Anton Lobov
78c02bc722 FL-10775 [fleet] properly find the enclosing expression
GitOrigin-RevId: 89ac7e992a08cdfea4f53cfee79727f3a041cf4b
2023-03-31 16:34:45 +00:00