Closed jeremy-farrance closed 5 years ago
remoteexplorer.filesexclude since 1.9.0.
For anyone needing a working example (I did, but figured it out by trial and error), here is an example that hides folders and files and shows patterns. Worked for me!!
, "remoteExplorer": {
"filesExclude": [
"admin",
"controls",
"/App_*",
"favicon.ico",
"*.map",
"*/*/Cache"
]
}
And if anyone is editing themes, scripts, or other files on a production/live DNN Platform website, this will massive reduce the clutter and hide a lot of things you wouldn't need to see or edit.
"remotePath": "/webroot", "remoteExplorer": { "filesExclude": [ "/.well-known", "/admin", "/App_Browsers", "/App_Code/ModuleCreator", "/App_Data", "/App_GlobalResources", "/aspnet_client", "/bin", "/Components", "/Config", "/controls", "/DesktopModules/Admin", "/DesktopModules/AuthenticationServices", "/DesktopModules/CoreMessaging", "/DesktopModules/CustomProperty", "/DesktopModules/DevicePreviewManagement", "/DesktopModules/DigitalAssets", "/DesktopModules/EasyDNNNews?*", "/DesktopModules/Events*Calendar*", "/DesktopModules/Feedback", "/DesktopModules/ForgottenUser", "/DesktopModules/HyperSettings", "/DesktopModules/Journal", "/DesktopModules/MemberDirectory", "/DesktopModules/MobileManagement", "/DesktopModules/ModuleCreator", "/DesktopModules/SocialGroups", "/DesktopModules/UserDefinedTable", "/DesktopModules/XModPro?*", "/Documentation", "/Icons", "/images", "/imagecache", "/Install", "/js", "/Licenses", "/Portals/*/Cache", "/Portals/*/Templates", "/Portals/*/Users", "/Portals/*/Images", "/Portals/_default/EventQueue", "/Portals/_default/Logs", "/Portals/_default/MergedTemplate", "/Portals/_default/Smileys", "/Providers", "/Resources", "/DNN.ico", "/Default.aspx*", "/DotNetNuke.ico", "/KeepAlive.aspx*", "/ErrorPage.aspx*", "/favicon.ico", "/DNN.ico", "/403-3.gif", "*.map", "Thumbs.db", "*DS_Store", "*.template.*.resx", "*.template.resources", "end-of-this-list" ] }
OMG THANK YOUUUU
On large and diverse projects with lots of folders/files, it can be frustrating to navigate the remote site.
It would be great if we could control settings in sftp.json to ignore folders and files via .gitignore style patterns or something similar.
From this discussion/issue https://github.com/liximomo/vscode-sftp/issues/325
Suggestion? "ignoreRemote": [ ".vscode", ".git", ".DS_Store" , "/admin/" , "/bin/" ]
VS Code = 1.29.1 sftp = 1.7.7
Does this project help you?