Skip to content

Commit

Permalink
Merge pull request #821 from getappmap/jansorg/indexing-doc
Browse files Browse the repository at this point in the history
chore: describe indexing of AppMap data
  • Loading branch information
kgilpin authored Jan 3, 2025
2 parents 739c240 + 8de7d89 commit 58ff362
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions development.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Indexing of AppMap Data

### Indexed `appmap.yml` Files

`appmap.yml` files, which are located in a project, are indexed.
The `.appmap.json` files located in the referenced `appmap_dir` directories are indexed automatically,
as long as these folders are not excluded.

### Excluded `appmap.yml` Files

In the IDE, excluded folders prevent indexing of any data.
Therefore, we implement `AppMapIndexedRootsSetContributor` to prevent this.
This class searches for `appmap.yml` files in the content roots of a project.
Values `appmap_dir` of these files are marked to be indexed even when such directory is excluded.

Content roots are usually the top-level directories of a project.
Therefore, `appmap.yml` files located in a nested, excluded folder won't be found by this implementation.
We're not collecting such files because iterating the complete directory tree is expensive without an index.

0 comments on commit 58ff362

Please sign in to comment.