(line string, character int, arrayAttributes bool)
| 140 | } |
| 141 | |
| 142 | func createSpacing(line string, character int, arrayAttributes bool) string { |
| 143 | if arrayAttributes { |
| 144 | // 2 more for the attribute, then 2 more for the array offset = 4 total |
| 145 | return strings.Repeat(" ", character+4) |
| 146 | } |
| 147 | sb := strings.Builder{} |
| 148 | sb.Grow(character + 2) |
| 149 | for i := range character { |
| 150 | if unicode.IsSpace(rune(line[i])) || line[i] == '-' { |
| 151 | sb.WriteString(" ") |
| 152 | } |
| 153 | } |
| 154 | sb.WriteString(" ") |
| 155 | return sb.String() |
| 156 | } |
| 157 | |
| 158 | func createTopLevelItems() []protocol.CompletionItem { |
| 159 | items := []protocol.CompletionItem{} |
no test coverage detected