Skip to content

Commit

Permalink
fix: follow_symlinks is commented out
Browse files Browse the repository at this point in the history
When removing a folder, any `follow_symlinks` options are commented out
by Sublime. Because Sublime keeps comments in place, adding and removing
the same project many times leads to a build up of comments in the
projects file.

As it seems the follow_symlinks option is not used by Sublime, not
adding it when adding folders resolves this issue.
  • Loading branch information
gerardroche committed Feb 9, 2024
1 parent cf8e034 commit d3285f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.

## 2.1.1 - 2024-02-09

### Fixed

- `follow_symlinks` option is commented out ST when removing folder

## [2.1.0] - 2020-01-22

* Added: Support for ST4
Expand Down
3 changes: 0 additions & 3 deletions plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,6 @@ def _add_folder(window, folder):
'path': folder
}

if folder != '.':
folder_struct['follow_symlinks'] = True

project_data['folders'].append(folder_struct)

window.set_project_data(project_data)
Expand Down

0 comments on commit d3285f4

Please sign in to comment.