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
Inform when syntax highlighting or word wrap is turned off for large files #44206
Comments
(Experimental duplicate detection) |
What extension did the file previously have before you changed it to .xml? Syntax highlighting for xml is being applied when a file has one of these extensions:
or the first line matches |
The extension is .wxs (WiX Installer XML), so it does have a match in the predefined extensions.
The first line in the file is a standard XML declaration with encoding.
<?xml version="1.0" encoding="utf-8"?>
|
That's strange:
This also works for me:
Also this works:
@asjJRAutomation Can you give your steps? Please verify that no other extension redefines the XML mode. |
I originally thought I was having a problem with many files, but now I'm only able to recreate the problem with a particular file. The file I'm having an issue with is a .wxs file that was generated by the WiX heat.exe application. It generates a .wxs file from input files. I've attached the file (with a .txt extension, GitHub would not allow upload of .wxs) It is a very large file (20MB). Maybe the file size is the issue? |
Oh, yes, there's a 20MB limit where tokenization will be disabled. |
Yes, now that notifications are not so invasive, we could add a passive notification informing about this, and also about the case of a very long line... |
To verify, try opening a very large file. |
Issue Type
Bug
Description
Any XML-based file with a non-xml extension has no syntax highlighting, even if the Language Mode is set to XML. After changing the file extension to .xml without changing any file contents, syntax highlighting works correctly.
VS Code Info
VS Code version: Code 1.20.1 (f88bbf9, 2018-02-13T15:34:36.336Z)
OS version: Windows_NT x64 10.0.16299
System Info
The text was updated successfully, but these errors were encountered: