Skip to main content

canonical_source_id

Function canonical_source_id 

Source
pub fn canonical_source_id(label: &str) -> SourceId
Expand description

Map a user-friendly source label ("lsp", "snippet", "buffer-words") to its canonical source id. Unknown labels pass through as-is, so plugin sources can be referenced by their full id ("plugin:my-source").