Skip to content
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

YAML Syntax Highlighting Breaks on Large Files #34658

Closed
Tracked by #1
cbluth opened this issue Sep 19, 2017 · 1 comment
Closed
Tracked by #1

YAML Syntax Highlighting Breaks on Large Files #34658

cbluth opened this issue Sep 19, 2017 · 1 comment
Assignees
Labels
grammar Syntax highlighting grammar

Comments

@cbluth
Copy link

cbluth commented Sep 19, 2017

  • VSCode Version: Code 1.16.1 (27492b6, 2017-09-14T16:26:20.018Z)
  • OS Version: Linux x64 4.10.0-35-generic
  • Extensions:
Extension Author (truncated) Version
vscode-markdownlint Dav 0.10.1
beautify Hoo 1.1.1
output-colorizer IBM 0.1.2
vscode-docker Pet 0.0.18
hugofy akm 0.1.0
better-toml bun 0.2.0
python don 0.7.0
json-tools eri 1.0.2
Go luk 0.6.65
terraform mau 0.0.17
cpptools ms- 0.12.4
gitlink qez 0.3.2
Ruby reb 0.15.0
vscode-icons rob 7.13.0
markdown-all-in-one yzh 0.9.0

Steps to Reproduce:

  1. generate large yaml file (kubectl get all --all-namespaces > large-yaml.yaml)
  2. highlighting breaks (note line numbers for relative size, also node sidebar):
    image

I am unsure if it is a plugin issue or a vscode issue, please advise.

@mjbvz mjbvz added the grammar Syntax highlighting grammar label Sep 19, 2017
@aeschli
Copy link
Contributor

aeschli commented Sep 21, 2017

There's a maximum number of lines we colorize. That's for performance reasons.
To check if that applies here, open the dev tools (Help > Toggle Developer Tools) and check the console log. We print a message when the size limit has been applied.

@aeschli aeschli closed this as completed Sep 21, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
grammar Syntax highlighting grammar
Projects
None yet
Development

No branches or pull requests

3 participants