From c077d23760b564dcfe22a8d1db7390a7bda8625e Mon Sep 17 00:00:00 2001 From: Remy Suen Date: Sun, 17 Sep 2023 08:54:45 -0400 Subject: [PATCH] Fix #122 Add missed update to Util Signed-off-by: Remy Suen --- src/docker.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/docker.ts b/src/docker.ts index 634d127..995a771 100644 --- a/src/docker.ts +++ b/src/docker.ts @@ -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); }