src/vs/workbench/browser/labels.ts/ResourceLabelWidget/hasFileKindChanged
class ResourceLabelWidget:	private hasFileKindChanged(newOptions?: IResourceLabelOptions): boolean {
		const newFileKind = newOptions?.fileKind;
		const oldFileKind = this.options?.fileKind;

		return newFileKind !== oldFileKind; // same resource but different kind (file, folder)
	}