(textBeforeCursor string)
| 30 | } |
| 31 | |
| 32 | func SlashCompletionActive(textBeforeCursor string) bool { |
| 33 | _, fragment, ok := SlashCompletionFragment(textBeforeCursor) |
| 34 | return ok && strings.HasPrefix(fragment, "/") |
| 35 | } |
| 36 | |
| 37 | func SlashCompletionFragment(textBeforeCursor string) (leading string, fragment string, ok bool) { |
| 38 | start := 0 |
no test coverage detected