Loading

如何解决VSCode Markdown Preview Enhanced没有响应的问题

我的解决方法是偶然发现的

因为在VSCode-ssh发现了这个问题

Error:ENOSPC:System limit for number of file watchers reached,watch '/home/XXX/.local/state/mume'
Visual Studio Code is unable to watch for file changes in this large workspace

官方的文档在这里。

https://code.visualstudio.com/docs/setup/linux#_visual-studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc

  • 可以采用重设fs.inotify.max_user_watches=524288的方法
  • 也可以写files.watcherExclude

因为我把自己的home目录添加到工作区当中了,我首先从工作区删除了home目录,然后写了这个,匹配所有以.点号开头的文件夹当中的文件

**/\..*\/**

注意不要只写**/\..*\/,这样只是过滤了文件夹本身,之中的文件不会被过滤


神奇的是!Markdown Preview Enhanced的问题直接就解决了

很可能是因为文件监视句柄不够

posted @ 2022-05-03 10:32  ZXYFrank  阅读(866)  评论(0编辑  收藏  举报