Closed karthiknadig closed 6 months ago
@charliermarsh This might be relevant for Ruff diff calculation for formatting with LSP. The ranges in TextEdits have to be calculated using encoding selected in positionEncoding
filed of client and server capability. There are 3 possible encodings supported for IDEs. VS Code itself only supports UTF-16.
Fixes https://github.com/microsoft/vscode-black-formatter/issues/395