Skip to main content

Module RegisterLanguageProvider

Module RegisterLanguageProvider 

Source
Expand description

Cocoon → register_* / register_*_provider notification dispatcher.

Handles all 46+ language-feature provider registration wire methods that Cocoon’s vscode-API shim emits. Strips the register_ prefix and optional _provider suffix from the method name to derive a normalised TypeName, logs the registration, then delegates to VineHost::RegisterLanguageProvider which maps TypeName to the embedder’s internal provider-type enum and inserts a ProviderRegistrationDTO. Returns true if the type was recognised.

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

Functions§

RegisterLanguageProvider