-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #387 from themkat/implement_abstract_members_emacs…
…_fix Fix issue where code action doesn't show up, unless entire text marked
- Loading branch information
Showing
2 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package org.javacs.kt.util | ||
|
||
import org.eclipse.lsp4j.Range | ||
|
||
// checks if the current range is within the other range (same lines, within the character bounds) | ||
fun Range.isSubrangeOf(otherRange: Range): Boolean = | ||
otherRange.start.line == this.start.line && otherRange.end.line == this.end.line && | ||
otherRange.start.character <= this.start.character && otherRange.end.character >= this.end.character |