Skip to content

Commit

Permalink
Merge pull request #124 from CodinGame/ksa/fix-lock-code-with-decorat…
Browse files Browse the repository at this point in the history
…ions

Fix lock feature with decorations
  • Loading branch information
CGNonofr authored Dec 3, 2024
2 parents 221a01d + 417adf4 commit bc2973e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function lockCodeUsingDecoration (
return true
}
return withDecoration
? ranges.every((uneditableRange) => !uneditableRange.containsRange(range))
? ranges.every((uneditableRange) => !monaco.Range.areIntersecting(uneditableRange, range))
: ranges.some((editableRange) => editableRange.containsRange(range))
}

Expand Down

0 comments on commit bc2973e

Please sign in to comment.