apex-dev-tools / apex-ls

Apex language server library
Other
2 stars 1 forks source link

Support RPC open passing options #205

Closed nawforce closed 1 year ago

nawforce commented 1 year ago

This adds a new open() method to the RPC interface that you can pass options to. I have added primarily to allow setting of the indexer configuration but I thought doing this way would eventually lead to a simpler RPC interface rather than just bolting on another config setter function.

The config params themselves are not scoped to an org but some only take effect when you create a new org and can not be changed for existing orgs. I think ideally we would move to that model for all of these so in essence we only provide at org open or when not provided default them on org open.