tailwind-ctp-intellisense/packages/tailwindcss-language-service/src/util/rangesEqual.ts

11 lines
285 B
TypeScript
Raw Normal View History

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
)
}