For arrays, I have a completion item that appears as [index] and, when selected, completes
to:
Ideally I'd like to be able to tack on the closing brace and place the cursor inside the array:
Or complete it as arr[index] and select word "index". Adding a new selection range property to the CompletionItem would let us do this.