microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
100.7k stars 12.45k forks source link

Intellisense "includes" breaks after many large files #60124

Open oriooctopus opened 2 weeks ago

oriooctopus commented 2 weeks ago

🔎 Search Terms

vscode, includes, large

🕗 Version & Regression Information

⏯ Playground Link

The readme describes how to reproduce the issue

https://github.com/oriooctopus/intellisense-bug

🙁 Actual behavior

Intellisense fails with an includes error even though the file is included. This directly correlates with the number of files in the images/animations folder. If you remove even one of them, the error will go away. This is because after reaching a certain amount of large files, typescript begins to have the issue

Screenshot 2024-10-02 at 10 40 32 PM

🙂 Expected behavior

I understand that typescript encourages excludes, but sometimes that is not easily achieved as we need these image file. At the very least though, the error shown is a misleading one.

Additional information about the issue

This appears on intellisense but I believe the problem/solution most likely lies within Typescript itself

RyanCavanaugh commented 1 day ago

We have a hardcoded limit of 20 MB of ingestion here so that we don't crash with an OOM instead. You'll need to put them in files if you really truly want to process that much input (I don't recommend doing that, but it is what it is).