-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript Syntax Highlighting Broken #56706
Comments
Please share the text of the code along with screenshots |
Here is a link to the file I had screenshot from above: Interestingly I noticed the syntax highlighting on this file is also broken in almost the same locations with same affects on GitHub as it is in VSCode. Perhaps this can be clue to fix the issue if they use the same dependency for computing this. Notice it starts to break at (colors start to be mismatched): (Notice the And is completely broken here (all the same color): |
@gluons Opened microsoft/TypeScript-TmLanguage#653 for that In the future please open a separate issue as it makes tracking and management easier |
Hmm. I just downloaded the insiders and still see the error. Even disabled all extensions. Was the version below the one you were using? Is there a better way for me to verify? VS Code version: Code - Insiders 1.27.0-insider (6e55926, 2018-08-20T08:36:52.887Z) System Info
|
Oh yeah format on paste fixes this if you copy it from github. Caused by a trailing space messing up syntax highlighting. Opened microsoft/TypeScript-TmLanguage#654 to track this |
There is current bug with syntax highlighting on TypeScripot files which have trailing white space. microsoft/TypeScript-TmLanguage#654 microsoft/vscode#56706 (comment)
There is current bug with syntax highlighting on TypeScripot files which have trailing white space. microsoft/TypeScript-TmLanguage#654 microsoft/vscode#56706 (comment)
Issue Type: Bug
I updated to latest version 1.26.1 and now code that was viewed properly before no longer has proper syntax highlighting
VS Code version: Code 1.26.1 (493869e, 2018-08-16T18:37:28.532Z)
OS version: Windows_NT ia32 10.0.17134
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Extensions (10)
The text was updated successfully, but these errors were encountered: