Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Look ma - No Indexing!

Look ma - No Indexing!

Yuriy Artamonov

October 27, 2024
Tweet

More Decks by Yuriy Artamonov

Other Decks in Programming

Transcript

  1. Me at JetBrains • Product Manager • and > Software

    Developer at IntelliJ Platform • writing code • like performance, profiling and fast code Yuriy_Artamonov artamonovy
  2. Brief history of changes — 2020 2024.1 2024.2 2024.3 Access

    to incomplete indices brings: • Code Completion • Search everywhere • Go to declaration Alternative resolve in Java. • Line markers • Icon providers • Run configurations • Annotators • Incomplete Dependencies Model • Run line markers • Inspections • Intentions
  3. But wait! I need indices 1. DumbModeAccessType.ignoreDumbMode 2. PSI access

    in the same file 3. GistManager 4. WorkspaceModel and VFS
  4. Where to start PossiblyDumbAware • Actions • Tool windows •

    Icon providers • Annotator for languages • Completion contributors • Search everywhere • Run configurations • Line markers plugins.jetbrains.com/docs/intellij/ indexing-and-psi-stubs.html#dumb-mode
  5. How to apply? Implementing features available during indexing Run inspection

    Check list of priorities Choose strategy Implement Test with Dumb mode simulation Deliver! Step one Step two Step three Step four Step five Step six Tools > Internal Actions > Enter Dumb mode