MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / SlashCompletionActive

Function SlashCompletionActive

cli/completer.go:32–35  ·  view source on GitHub ↗
(textBeforeCursor string)

Source from the content-addressed store, hash-verified

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

Callers 1

CompleteInputFunction · 0.85

Calls 1

SlashCompletionFragmentFunction · 0.85

Tested by

no test coverage detected