blob: f4a5450e2b8c19bc946f2fc6a4488d8797ef583f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import * as vscode from 'vscode';
/** Compares two `vscode.Diagnostic`s for equality */
export function areDiagnosticsEqual(
left: vscode.Diagnostic,
right: vscode.Diagnostic,
): boolean {
return (
left.source === right.source &&
left.severity === right.severity &&
left.range.isEqual(right.range) &&
left.message === right.message
);
}
|