diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-19 10:10:07 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-19 10:10:07 -0400 |
| commit | 9970351043d75b9edea495780ca6fb68b67b346d (patch) | |
| tree | 98af9a5e138071679fbf379541e8fa1dccf47b99 /src/server/methods.odin | |
| parent | 9ffbad23c023a84f568d6079e1181442f5e70500 (diff) | |
Improvements to bitset completions with named bitsets and selector chains
Diffstat (limited to 'src/server/methods.odin')
| -rw-r--r-- | src/server/methods.odin | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/methods.odin b/src/server/methods.odin index e60b84e..8b05840 100644 --- a/src/server/methods.odin +++ b/src/server/methods.odin @@ -19,7 +19,7 @@ import "src:common" @(private) -create_remove_edit :: proc(position_context: ^DocumentPositionContext) -> ([]TextEdit, bool) { +create_remove_edit :: proc(position_context: ^DocumentPositionContext, strip_leading_period := false) -> ([]TextEdit, bool) { range, ok := get_range_from_selection_start_to_dot(position_context) if !ok { @@ -31,6 +31,10 @@ create_remove_edit :: proc(position_context: ^DocumentPositionContext) -> ([]Tex end = range.end, } + if strip_leading_period { + remove_range.end.character -= 1 + } + remove_edit := TextEdit { range = remove_range, newText = "", |