extensions/markdown-language-features/server/src/languageFeatures/diagnostics.ts/convertDiagnosticLevel
function convertDiagnosticLevel(enabled: ValidateEnabled): md.DiagnosticLevel | undefined {
	switch (enabled) {
		case 'error': return md.DiagnosticLevel.error;
		case 'warning': return md.DiagnosticLevel.warning;
		case 'ignore': return md.DiagnosticLevel.ignore;
		case 'hint': return md.DiagnosticLevel.hint;
		default: return md.DiagnosticLevel.ignore;
	}
}