Sublime Forum

Files/folders not refreshing automatically

#1

Hi all,

I just noticed that ST is not automatically refreshing files/folders on the sidebar. It does refresh when I close and re-open the project, or when I use Project: Refresh Folders. I do not see any errors in the console. Doing some digging, I noticed this is happening to all my projects with version control. However, I have a project without version control in which files/folders refresh automatically.

I am on Windows 11, ST 4192, SM 2102. I look forward to hearing your thoughts. Thank you!

0 Likes

#2

Are your projects on a non-NTFS drive (like a USB)?

0 Likes

#3

No, they are all on the C:\ drive, which is formatted as NTFS.

0 Likes

#4

Have you rebooted since you noticed this happening?

0 Likes

#5

Hi @bschaaf,

Yes, I have rebooted a couple of times unsuccessfully. I believe I was able to nail down the issue. In the Project.sublime-project, I normally only add a few files and folders out of all possible files/folders in the project.

As an example, consider the content of the Project.sublime-project file as the following:

{
	"folders":
	[
		{
			"path": "../", // The "Project.sublime-project" file is in the "Project" folder, inside the "Project X" folder.
			"name": "Project X",
			"file_include_patterns":
			[
				"Code/*.*",
			],
			"folder_include_patterns":
			[
				"Code",
			],
		},
	],
}

This code allows me to show in the sidebar all files in the Code folder. Files that are added/removed from the folder are automatically refreshed. The only issue I have is that it does not add files in a subfolder inside Code to the sidebar. To do this, I change "Code", to "//Code/",. This allows me to include all files in subfolders, but the files are not automatically refreshed. To be clear, the updated code is:

{
	"folders":
	[
		{
			"path": "../", // The "Project.sublime-project" file is in the "Project" folder, inside the "Project X" folder.
			"name": "Project X",
			"file_include_patterns":
			[
				"Code/*.*",
			],
			"folder_include_patterns":
			[
				"//Code/",
			],
		},
	],
}

Is this a bug? Am I doing something wrong?

0 Likes