apex-dev-tools / apex-ls

Apex language server library
Other
2 stars 1 forks source link

Add RPC API to get dependency counts for all classes & triggers #220

Closed kjonescertinia closed 1 year ago

kjonescertinia commented 1 year ago

This adds a new method 'getAllDependencyCounts' to the RPC interface that can be used instead of getDependencyCounts when you want apex-ls to search for class & trigger files for you instead of providing a list. It takes as arguments a scopeDirectory, only files within this will be returned if you only want to search part of the workspace.

The implementation locates the files for you and then calls into getDependencyCounts to get the counts so all other behaviours match that of getDependencyCounts.