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
When formatting the whole file, we return a single text edit containing the whole formatted document, which can sometimes cause vscode to lose track of the cursor position. According to microsoft/vscode#10133, vscode prefers that extensions provide a minimal number of edits.
We should instead use the proposed --write-mode=diff argument to provide vscode with a minimal number of edits.
When formatting the whole file, we return a single text edit containing the whole formatted document, which can sometimes cause vscode to lose track of the cursor position. According to microsoft/vscode#10133, vscode prefers that extensions provide a minimal number of edits.
We should instead use the proposed
--write-mode=diff
argument to provide vscode with a minimal number of edits.This has a dependency on trixnz/lua-fmt#13.
The text was updated successfully, but these errors were encountered: