From e56ea38094e9214d428508af4c0923379fabd84e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D1=80=D0=B5=D0=B4=D1=80=D0=B0=D0=B3=20=D0=9D=D0=B8?= =?UTF-8?q?=D0=BA=D0=BE=D0=BB=D0=B8=D1=9B=20/=20Predrag=20Nikolic?= Date: Wed, 26 May 2021 23:06:10 +0200 Subject: [PATCH] Normalize line-endings on inserting imports to fix Windows issues (#61) --- plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index 7418fe6..97771df 100644 --- a/plugin.py +++ b/plugin.py @@ -74,7 +74,7 @@ def _to_lsp_edits(self, items: Any) -> Dict[str, List[TextEditTuple]]: ( (start['line'] - 1, start['offset'] - 1), (end['line'] - 1, end['offset'] - 1), - text_change['newText'], + text_change['newText'].replace("\r", ""), None, ) )