fn severity_for_code(code: &DiagCode) -> u8
Map a DiagCode to an LSP severity (1=Error, 2=Warning, 3=Info, 4=Hint).