vscode: Windows VSCode error: Error: EMFILE: too many open files

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.56.2
  • OS Version: Windows Enterprise LTSC

Steps to Reproduce:

In a workspace with too many files, when trying to search symbol with Ctrl+T, nothing happends, no symbols show up, and log window:

[2021-05-19 20:25:07.653] [renderer1] [error] Error: EMFILE: too many open files, open 'e:\_\note\z_工具与库\mongo\资源.md': Unknown (FileSystemError) (FileSystemError): Error: EMFILE: too many open files, open 'e:\_\note\z_工具与库\mongo\资源.md'
	at _handleError (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:87:156611)
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async s.getMarkdownDocument (c:\Program Files\Microsoft VS Code\resources\app\extensions\markdown-language-features\dist\extension.js:1:124073)
	at async Promise.all (index 8188)
	at async s.getAllMarkdownDocuments (c:\Program Files\Microsoft VS Code\resources\app\extensions\markdown-language-features\dist\extension.js:1:122844)
	at async l.populateSymbolCache (c:\Program Files\Microsoft VS Code\resources\app\extensions\markdown-language-features\dist\extension.js:1:125142)
	at async l.provideWorkspaceSymbols (c:\Program Files\Microsoft VS Code\resources\app\extensions\markdown-language-features\dist\extension.js:1:124545)

If in linux, there is a way to fix this: https://code.visualstudio.com/docs/setup/linux#_visual-studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc But on Windows, how can I do this?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17 (7 by maintainers)

Commits related to this issue

Most upvoted comments

Yes. Fixed in insider version. Thank you!