vscode-markdown
vscode-markdown copied to clipboard
Extension stops working when there are >10000 image files in a workspace
Problem
The enter and backspace keys become unresponsive if there are many images in the workspace. Could you make it interrupt the autocompletion when there are many completion items?
How to reproduce
- Open a folder
- Run the following Python script to make dummy files
test.py
from pathlib import Path Path("foo/bar").mkdir(exist_ok=True, parents=True) for i in range(50000): Path(f"foo/bar/file{i}.png").write_text("")
- Make a markdown file and type
 search.exclude
to ignore certain folders.
This is actually not that absurd. If you use vscode as Markdown editor in a way similar to the use case of obsidian you can encounter this problem in daily work (i got 10k png's, 60k jpg's, 3.5k md's). I hope this gets looked into at some point.