(name: string)
| 122 | } |
| 123 | |
| 124 | getCompletions(name: string): SuggestionGroup[] { |
| 125 | if (this.has(name, 'static')) { |
| 126 | return ( |
| 127 | this.completions.get(name)?.() ?? [{ supportsNegative: false, values: [], modifiers: [] }] |
| 128 | ) |
| 129 | } |
| 130 | |
| 131 | return this.completions.get(name)?.() ?? [] |
| 132 | } |
| 133 | |
| 134 | suggest(name: string, groups: () => SuggestionGroup[]) { |
| 135 | let existingGroups = this.completions.get(name) |