I’m using Version 3.1.1, Build 3176 with the sFTP package.
I’m working with a project that syncs several directories. Recently, when I click on a file to edit it, it will come up as a CSS document despite the fact the extension clearly labels it .php,.js,.pl, etc.
I can set the document to the appropriate type, but it forgets it the moment I close the file.
Here is a redacted copy of my sftp-config.json for the project.
"type": "sftp",
"sync_down_on_open": true,
"sync_same_age": true,
"host": "example.com",
"user": "root",
"password": "MySecretPass",
"remote_path": "/var/www/htdocs/",
"connect_timeout": 30,
"keepalive": 120,
"allow_config_upload": true,
"save_before_upload": true,
"upload_on_save": true,
"sync_down_on_open": true,
"sync_skip_deletes": false,
"sync_same_age": true,
"confirm_downloads": false,
"confirm_sync": true,
"confirm_overwrite_newer": false,
"remote_path": "/var/www/htdocs/my_project/",
"ignore_regexes": [
"\\.sublime-(project|workspace)", "sftp-config(-alt\\d?)?\\.json",
"sftp-settings\\.json", "/venv/", "\\.svn/", "\\.hg/", "\\.git/",
"\\.bzr", "_darcs", "CVS", "\\.DS_Store", "Thumbs\\.db", "desktop\\.ini", "php_errors.log"
],