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
This code action involves inserting indentation, so the natural idea is to get the insertSpaces boolean and tabSize integer from the XMLFormattingOptions from SharedSettings. The problem is that these values are only accurate during formatting requests.
Unfortunately we do not get these values for code action requests. We need another way to get these values.
For VS Code, we cannot just read editor.tabSize and editor.insertSpaces from VS Code and map them to lemminx by creating new settings, because in VS Code you can set these values per file, from the bar at the bottom of VS Code:
Maybe we can deduce these values by reading the actual document itself?
(Originally from #518 )
Given this XML file:
should be highlighted. (It should be managed in XMLSyntaxErrorCode).
CodeAction could create the proper entity in the DOCTYPE like this:
We must take care of existing of doctype. For instance if we have
CodeAction should generate
The text was updated successfully, but these errors were encountered: