Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: kebab-casing should work in multicursor completion #95

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

action-hong
Copy link

When using multiple cursors to complete kebab-case class names, only the first line removes the "." , while other lines still retain the ".".

issue

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.

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant