Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
diagnostic =>
({
severity: diagnostic.severity === vscode.DiagnosticSeverity.Error ? "error" : "warning",
location: {
document,
start: vscTextDocument.offsetAt(diagnostic.range.start),
end: vscTextDocument.offsetAt(diagnostic.range.end)
},
message: diagnostic.message
} as LitCssDiagnostic)
);