You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Take a look at tagClosing.ts to see the current implementation. The idea is that we set up a listener that listens to text changes in the current document. When a > or / is inserted, we do a custom request to lemminx to get what should be inserted.
There are few ways we could implement multi tag closing: either change the API between vscode-xml and lemminx to accept multiple positions, or make multiple requests, one for each cursor position, when we detect that a tag should be closed. There are benefits and drawbacks to each approach.
See #490 (comment)
If you have a document like this, with cursors at each
|
pipe:And then you perform auto-close by typing
>
, (assuming #490 is merged), it will give:It would be very cool if we instead did:
The text was updated successfully, but these errors were encountered: