Skip to content

Commit

Permalink
Stop creating empty settings file
Browse files Browse the repository at this point in the history
  • Loading branch information
evandrocoan authored and Taras Kopets committed Mar 4, 2019
1 parent 27e6efe commit 190ee42
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions SQLTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,16 +767,6 @@ def reload():


def plugin_loaded():
# 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 overridden by content
# from older versions of SQLTools in 'User\SQLTools.sublime-settings'
sublimeUserFolder = getSublimeUserFolder()
userSettingFile = os.path.join(sublimeUserFolder, SQLTOOLS_SETTINGS_FILE)
if not os.path.isfile(userSettingFile):
# create empty settings file in 'User' folder
sublime.save_settings(SQLTOOLS_SETTINGS_FILE)

try:
from package_control import events
Expand Down

0 comments on commit 190ee42

Please sign in to comment.