Skip to main content

Module RegisterLanguageProvider

Module RegisterLanguageProvider 

Source
Expand description

Handles all register_* / register_*_provider gRPC notifications from the Cocoon extension host. Each such notification wires a language-feature provider into Mountain’s ProviderRegistration keyed on Handle; the language-feature RPC path (e.g. GetHoverAtPosition) then proxies back to Cocoon with the original $providerXxx method.

Wire-method naming uses snake_case with two trailing shapes:

  • plain verbs: register_rename, register_debug_adapter
  • _provider suffix: register_hover_provider, register_code_lens_provider

Both forms are normalised by stripping register_ prefix and optional _provider suffix before the enum lookup.

Functions§

RegisterLanguageProvider
Dispatch a register_* notification. Returns true if the method was recognised and a ProviderRegistrationDTO was inserted.