Why doesn't sublime show inside this directory with a link symbol on it?

不问归期 提交于 2020-05-17 06:54:44

问题


In this case "src". And how can I get it to show up? Editing some setting? See picture.


回答1:


When you open a folder in Sublime, it crawls the entire folder in order to come up with a complete catalog of every file and folder that exists within that particular folder, so that it can be displayed in the side bar, indexed for symbols, and so on. This is the reason why it's not a good idea to open the root of an entire drive or a large structure like your home directory, for example.

Folders with a link on them are Symbolic Links to other folders that have already been seen in the folder tree. Sublime doesn't look inside them because it's impossible to detect if the link ultimately ends up causing the traversal to end up back where it started, which would end up scanning the same folder tree forever until memory runs out.

As such there is no setting that controls being able to look inside such a folder. However if you right click on it, there is an optional entitled Reveal Link Source that will show you what it's linking to.

The determination of what's a link and what is not is done by comparing the underlying folder information from the OS (e.g. on Linux it would compare the inode); the first time one is seen, it's added, and all other references to the same data are considered links.

As a side note, in rare cases this has been known to run afoul of poorly designed file systems (such as those that expose a remote file system locally) that don't properly identify items. The console tells you when links are found. That's only of interest if the item in your screenshot actually is not a symlink, though.



来源:https://stackoverflow.com/questions/55435445/why-doesnt-sublime-show-inside-this-directory-with-a-link-symbol-on-it

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!