Skip to content

Commit

Permalink
Fix #122 Add missed update to Util
Browse files Browse the repository at this point in the history
Signed-off-by: Remy Suen <[email protected]>
  • Loading branch information
rcjsuen committed Sep 17, 2023
1 parent 50d0912 commit c077d23
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ export class Util {
return range.start.line < position.line && position.line < range.end.line;
}

public static isEmpty(range: Range): boolean {
return range.start.line === range.end.line && range.start.character === range.end.character;
}

public static rangeEquals(range: Range, range2: Range) {
return Util.positionEquals(range.start, range2.start) && Util.positionEquals(range.end, range2.end);
}
Expand Down

0 comments on commit c077d23

Please sign in to comment.