2022-07-06 15:40:29 +00:00
|
|
|
import type { Range } from 'vscode-languageserver'
|
2020-06-18 09:54:01 +00:00
|
|
|
|
|
|
|
export function rangesEqual(a: Range, b: Range): boolean {
|
|
|
|
return (
|
|
|
|
a.start.line === b.start.line &&
|
|
|
|
a.start.character === b.start.character &&
|
|
|
|
a.end.line === b.end.line &&
|
|
|
|
a.end.character === b.end.character
|
|
|
|
)
|
|
|
|
}
|