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
There are some characters, like LS, PS or NEL, which are considered to be line terminators in certain languages, according to their spec:
char/seq
Unicode
JS
C#
HTML
Python
PHP
Java
YAML
CRLF
✅
✅
✅
✅
✅
✅
✅
✅
CR
✅
✅
✅
✅
✅
✅
✅
✅
LF
✅
✅
✅
✅
✅
✅
✅
✅
LS
✅
✅
✅
✅
PS
✅
✅
✅
✅
NEL
✅
✅
FF
✅
VT
✅
But VS Code only considers CRLF, CR or LF to be line terminators. This can become very problematic when VS Code attempts to communicate with a language server that uses a different set as line terminators (e.g. tsserver).
It would be very difficult to make VS Code have language based line terminators, so the current thinking is to try to get rid of these problematic characters, since, most likely, they were unintentional.
(There is a body of text below which contains such a character below).
Please check that:
when pasting such text a prompt is shown
when opening a file a prompt is shown
in the prompt, it is explained (in short) what the problem is
in the prompt, it is possible to ignore the problem
in the prompt, it is possible to fix things
there is a setting, editor.unusualLineTerminators, which can be configured to off to never do anything about these characters, to auto to remove them silently and to prompt (the default) which shows a confirmation prompt before doing anything.
Test plan item for #96142
Complexity: 3
Create Issue
There are some characters, like LS, PS or NEL, which are considered to be line terminators in certain languages, according to their spec:
But VS Code only considers CRLF, CR or LF to be line terminators. This can become very problematic when VS Code attempts to communicate with a language server that uses a different set as line terminators (e.g.
tsserver
).It would be very difficult to make VS Code have language based line terminators, so the current thinking is to try to get rid of these problematic characters, since, most likely, they were unintentional.
(There is a body of text below which contains such a character below).
Please check that:
editor.unusualLineTerminators
, which can be configured tooff
to never do anything about these characters, toauto
to remove them silently and toprompt
(the default) which shows a confirmation prompt before doing anything.The text was updated successfully, but these errors were encountered: