This commit removes usages of deprecated `DumbServiceImpl.setDumbMode` and replaces them with modern API.
GitOrigin-RevId: d3fa0e8eec04d7b10a0b98ff46c2f4bb5a8197b9
New API is currently `@TestOnly`. The plan is that `DumbService.runInDumbMode` will become a recommended production API.
`{run/compute}InDumbModeSynchronously` will remain as `@TestOnly`, and (likely) will be moved to DumbModeTestUtils later.
GitOrigin-RevId: c9f35ed8162b5ea53caa0abb859193d2918376fe
1. More uniform messages
2. Better anchor when var is defined in multiple patterns
3. Separate error messages for Java 20 and Java 21
GitOrigin-RevId: d7c6ab5b4445b7929bdcf200ac0838fc5431e803
In this commit we implement a logical implication of the fact
that StubIndex::get is deprecated, combined with the fact that
AbstractStubIndex::get is not deprecated but calls
StubIndex::get with the exact same arguments it received. The
absence of deprecation of AbstractStubIndex::get obfuscates
the fact that we want to phase out StubIndex::get calls.
Apart from deprecating said method, we add some convenience
methods in AbstractStubIndex inheritors that ensure a few things:
- The not-deprecated and preferred StubIndex::getElements is
called with appropriate arguments, including a properly
specialised requiredClass argument.
- Shorter syntax and DRY: only 3 arguments are required to pass
into the convenience method, whereas getElements requires 2
more. These 2 arguments are fields of the AbstractStubIndex
inheritor, so it makes little sense to get them from there
and pass them into StubIndex::getElements everywhere.
Wherever we can, these convenience methods are now used.
If you have access to JetBrains internal resources, also see:
https://jetbrains.team/p/ij/reviews/112930/timelinehttps://jetbrains.slack.com/archives/CMDBCUBGE/p1691509451975689
GitOrigin-RevId: c51ef4de44aa85841799640b1ece9d291208dc69
WorkspaceFileIndex.getContentFileSetRoot returns the path from the source root (since source roots are registered as files set of the 'content' type), so we should try ProjectFileIndex.getContentRootForFile first.
GitOrigin-RevId: d34907441f343c525286c3067e310b9acd9316c1
- rewritten caches to use static for java
- added tests
- not qualified if there is static important
- smart completion
- more accurate compare types
- take into account SPACE_AFTER_COMMA
- check cancel more often
GitOrigin-RevId: 17a3f093dfd7930f0b827f9cdbc1ef8c95cf86cb
Now that select in operations are async,
we actually need to wait in tests until they're finished.
GitOrigin-RevId: da254ad9d5fa10d866b6bdc474abeeae3ba3204e
- uast based visitor in unused declaration should analyse receivers which might contain references to variables/functions/etc
- Currently simple references in receivers are not processed and thus test has false positive
^ KTIJ-23958
- KotlinJavaApiUsageInspectionTest.`test reference in callable reference` doesn't test actual problem because UastVisitorAdapter is used: meaning that psi hierarchy is traversed and converted to uast one-by-one.
GitOrigin-RevId: 01b2c31fe42181c428b2c8767dc18db73bdfd659
Conversion to enhanced switch produces incorrect code.
- Added checks that branches don't have a fast exit
GitOrigin-RevId: 33c6cffa421a3b0c3c5b9f9f1ea29127c7a99d29
+ VirtualFileGistImpl is an old impl, replaced with VirtualFileGistOverGistStorage long ago. Removed it from the codebase
GitOrigin-RevId: d766f66ae41fba870b6e33c3fc719eed7f6f6b9c