File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
python_packages/jupyter_lsp/jupyter_lsp Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 10
10
11
11
- fixed name of jupyterlab-lsp package displayed in JupyterLab UI ([ #570 ] , thanks @marimeireles )
12
12
- removed vendored CodeMirror from distribution ([ #576 ] )
13
+ - fix encoding on Windows for non-conda installs ([ #580 ] , thanks @stonebig )
13
14
14
15
[ #557 ] : https://github.com/krassowski/jupyterlab-lsp/pull/557
15
16
[ #570 ] : https://github.com/krassowski/jupyterlab-lsp/pull/570
16
17
[ #576 ] : https://github.com/krassowski/jupyterlab-lsp/pull/576
18
+ [ #580 ] : https://github.com/krassowski/jupyterlab-lsp/pull/580
17
19
18
20
### ` @krassowski/jupyterlab-lsp 3.5.0 ` (2020-03-22)
19
21
Original file line number Diff line number Diff line change @@ -41,15 +41,15 @@ def read_lines(self):
41
41
lines = ["" ]
42
42
try :
43
43
# TODO: what to do about bad encoding reads?
44
- lines = self .path .read_text ().splitlines ()
44
+ lines = self .path .read_text (encoding = 'utf-8' ).splitlines ()
45
45
except FileNotFoundError :
46
46
pass
47
47
return lines
48
48
49
49
@run_on_executor
50
50
def write_lines (self ):
51
51
self .path .parent .mkdir (parents = True , exist_ok = True )
52
- self .path .write_text ("\n " .join (self .lines ))
52
+ self .path .write_text ("\n " .join (self .lines ), encoding = 'utf-8' )
53
53
54
54
@staticmethod
55
55
def trim (lines : list , character : int , side : int ):
You can’t perform that action at this time.
0 commit comments