Format code
This commit is contained in:
@ -371,8 +371,7 @@ export function kclErrorsToDiagnostics(
|
|||||||
sourceCode: string
|
sourceCode: string
|
||||||
): CodeMirrorDiagnostic[] {
|
): CodeMirrorDiagnostic[] {
|
||||||
let nonFatal: CodeMirrorDiagnostic[] = []
|
let nonFatal: CodeMirrorDiagnostic[] = []
|
||||||
const errs = errors
|
const errs = errors.flatMap((err) => {
|
||||||
.flatMap((err) => {
|
|
||||||
const diagnostics: CodeMirrorDiagnostic[] = []
|
const diagnostics: CodeMirrorDiagnostic[] = []
|
||||||
let message = err.msg
|
let message = err.msg
|
||||||
if (err.kclBacktrace.length > 0) {
|
if (err.kclBacktrace.length > 0) {
|
||||||
|
Reference in New Issue
Block a user