microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.2k stars 28.85k forks source link

Deeper Json Hierarchy #230314

Open blewis2-blue opened 4 days ago

blewis2-blue commented 4 days ago

Here's a toy example of a json file with deep nesting

{
  "1": {
    "2": {
      "3": {
        "4": {
          "5": {
            "6": {
              "7": {
                "8": {
                  "9": {
                    "10": {

                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

If I scroll down to hide the top several lines, I see the hierarchy in the breadcrumbs only up to "4".

image

Please show more, or possibly even configurable. Thanks!

gjsjohnmurray commented 4 days ago

You can increase the value of the editor.stickyScroll.maxLineCount setting.

blewis2-blue commented 4 days ago

You can increase the value of the editor.stickyScroll.maxLineCount setting.

This worked for the example above. Interestingly, it doesn't work for my real file, and now I see that it's a bit glitchy. I pasted and formatted the large, test json file from https://github.com/json-iterator/test-data/blob/master/large-file.json and it's more or less nonfunctional. Truncating that file to different lengths, 10000 lines seems fine, 100000 not so much.

Is it OK to move the goal posts on this feature request to supporting stickyScroll for large JSON files?