When using multiple cursors to complete kebab-case class names, only the first line removes the "." , while other lines still retain the ".".
According to the discussion, additionalTextEdits do not affect other lines.
Since additional text edits are "precise", e.g. naming a range and text, we cannot multiply them with each cursor location. However, the main edit of a completion will be applied for each cursor. So, ideally the c++ extension doesn't need additional text edits for this.
Therefore, instead of using additionalTextEdits, we set the range directly to include the "." for replacement.
When using multiple cursors to complete kebab-case class names, only the first line removes the "." , while other lines still retain the ".".
According to the discussion, additionalTextEdits do not affect other lines.
Therefore, instead of using
additionalTextEdits
, we set the range directly to include the "." for replacement.