sublime text 3 sidebar autoupdating not working

前端 未结 16 1706
失恋的感觉
失恋的感觉 2020-12-30 21:00

I was wondering if anyone could tell me how to make it so that sublime text 3 automatically updates the sidebar when i add a new folder/file to the current project in finder

16条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-30 21:40

    One of the sub-folders of my project contained a symlink to the project itself, making a loop. As soon as I've removed it and re-opened the project, the problem went away. However, that symlink was necessary for my project to function, so I created a simple .sublime-project file:

    {
      "folders": [{
        "path": "/",
        "folder_exclude_patterns": ["symlink-or-one-of-its-parents"]
      }]
    }
    

    The exclusion pattern made Sublime ignore the loop, and the sidebar went back to normal right away. Just note that folder_exclude_patterns accepts folder names, not paths. That means that it might exclude something you didn't want to exclude (i.e. if you write lib it'll exclude all lib folders in your project, regardless of where they are). Hope this helps somebody.

提交回复
热议问题