We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f22c2f commit f303d38Copy full SHA for f303d38
src/utils/monaco/highlightErrors.ts
@@ -27,18 +27,17 @@ function highlightErrors() {
27
return;
28
}
29
30
- const markers = errors.map((error): editor.IMarkerData => {
31
- const markerColumn = error.startColumn + 1;
32
- return {
+ const markers = errors.map(
+ (error): editor.IMarkerData => ({
33
message: i18n('context_syntax-error'),
34
source: error.message,
35
severity: MarkerSeverity.Error,
36
startLineNumber: error.startLine,
37
- startColumn: markerColumn,
+ startColumn: error.startColumn + 1,
38
endLineNumber: error.endLine,
39
- endColumn: markerColumn,
40
- };
41
- });
+ endColumn: error.endColumn + 1,
+ }),
+ );
42
editor.setModelMarkers(model, owner, markers);
43
44
0 commit comments