redhat-developer / redhat-developer/vscode-yaml

Warning about over 5000 symbols shown even when yaml.maxItemsComputed is MUCH higher

Open
#1,036 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
830
Forks
260
Avg merge
5h 43m
Merged PRs (30d)
1

Description

Describe the bug

I have yaml.maxItemsComputed configured to 100000 in my user settings and 500000 in my .code-workspace settings, and yet when I open a large yaml file in my workspace (an OAS spec FWIW), I still get a toast that document symbols have been limited to 5000.

The large file in question is just under 500000 bytes, so it can't possibly have more than 500k symbols.

I was hoping there might be some informative output in the YAML Support output view, but it is completely empty.

Expected Behavior

The setting should be obeyed.

Current Behavior

A warning toast is shown. It is not immediately clear to me if document symbols have actually been limited however, or if the toast is a false positive.

Steps to Reproduce

  1. Create a multi-project .code-workspace
  2. Change settings as noted above
  3. Open a large yaml file

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the warning with the stated user and multi-project workspace settings on Linux, then inspect the document-symbol limit handling and the YAML Support output behavior. Done means the configured limit is respected and the warning is not shown falsely; no source file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.