type_provider

Attribute Macro type_provider 

Source
#[type_provider]
Expand description

This macro provides default implementations for all required types in TypeProvider.

ยงExample

use sync_lsp::{TypeProvider, type_provider};
 
struct MyServerState;
 
#[type_provider]
impl TypeProvider for MyServerState {
    type ShowMessageRequestData = u32;
    // All other types will be set to `Option<()>`
}