Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

Why create empty settings file on the User folder? #144

@evandrocoan

Description

@evandrocoan

On the lines we can find it:

File: Data/Packages/SQLTools/SQLTools.py
665:     userSettingFile = os.path.join(sublimeUserFolder, SQLTOOLS_SETTINGS_FILE)
666:     if not os.path.isfile(userSettingFile):
667:         # create empty settings file in 'User' folder
668:         sublime.save_settings(SQLTOOLS_SETTINGS_FILE)

Above has the comment:

    # this ensures we have empty settings file in 'User' directory during first start
    # otherwise sublime will copy entire contents of 'SQLTools.sublime-settings'
    # which is not desirable and prevents future changes to queries and other
    # sensible defaults defined in settings file, as those would be overriden by content
    # from older versions of SQLTools in 'User\SQLTools.sublime-settings'

However I never saw Sublime Text doing such thing on version 3. Perhaps this is a fix Sublime Text version 2?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions