Skip to content

How to handle multi cursor TextEdit-s? #950

@predragnikolic

Description

@predragnikolic

Hello :)

Given we have a css file like this,
with the cursor being |:

div {
    mar|gin: 0;  // <- primary cursor is on this line 
}

div {
    mar|gin: 0;
}

Imagine that all completion items have a TextEdit.
My main question is:
What is the best way to apply a TextEdit of the selected completion item
correctly on both places?

How do I handle multi-cursor TextEdit-s?

  • Do I need to fire multiple requests for each cursor position?
  • or do I make only one request, and based on some algorithm calculate an offset
    and for each cursor apply the TextEdit with the offset for each cursor?

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussioninfo-neededIssue requires more information from poster

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions