Skip to content

Commit

Permalink
release 2.9.8
Browse files Browse the repository at this point in the history
  • Loading branch information
xjsender committed May 24, 2015
1 parent e465908 commit 8023422
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 2 deletions.
13 changes: 12 additions & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,22 @@ Release History
---------------


Release 2.9.7 (2015-05-22)
Release 2.9.8 (2015-05-24)
++++++++++++++++++
* Update:
- Update the plugin install message for package control

* Enhancement:
- Add the missed attributes for some standard components since v29.0
- Add attribute values for standard components if attribute value is picklist attribute

* New:
- Add a new setting ``auto_update_on_save``, default value is false
- If ``auto_update_on_save`` is set to true, when you update the code file, ``save_to_server`` will be executed automatically

* Note:
- From this version on, I will not keep frequently release on this plugin, I will move on to build Haoide plugin for brackets


Release 2.9.7 (2015-05-22)
++++++++++++++++++
Expand Down
19 changes: 19 additions & 0 deletions config/messages/2.9.8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Build 2.9.8
-----------
Release Date: 24 May 2015

* Update:
- Update the plugin install message for package control

* Enhancement:
- Add the missed attributes for some standard components since v29.0
- Add attribute values for standard components if attribute value is picklist attribute

* New:
- Add a new setting ``auto_update_on_save``, default value is false
- If ``auto_update_on_save`` is set to true, when you update the code file, ``save_to_server`` will be executed automatically

* Note:
- From this version on, I will not keep frequently release on this plugin, I will move on to build Haoide plugin for brackets
- You should restart your sublime after ``HaoIDE`` is upgraded
-----------
2 changes: 1 addition & 1 deletion config/settings/package.sublime-settings
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "HaoIDE",
"version": "2.9.7",
"version": "2.9.8",
"description": "HaoIDE is a Sublime Text 3 plugin for Salesforce and used for swift development on Force.com",
"author": "Hao Liu",
"email": "mouse.mliu@gmail.com",
Expand Down
3 changes: 3 additions & 0 deletions config/settings/toolingapi.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@
// It depends on your choice.
"keep_project_name_time_suffix" : true,

// Automatically update change to server when save file
"auto_update_on_save": false,

// Every time when you open a file, assume the project of this file is not the default project,
// if you set this settings to true, plugin will switch the default project to the project
// of the open file automatically when you open a file
Expand Down
3 changes: 3 additions & 0 deletions context.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ def get_settings():
# Indicate whether keep local change history
settings["keep_local_change_history"] = s.get("keep_local_change_history", True)

# Automatically update change to server when save file
settings["auto_update_on_save"] = s.get("auto_update_on_save", False)

# Check whether the LastModifiedById is current user
settings["check_save_conflict"] = s.get("check_save_conflict", True)

Expand Down
7 changes: 7 additions & 0 deletions events.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ def on_load_async(self, view):

util.display_active_project(view)

def on_post_save_async(self, view):
settings = context.get_settings();
if not view.file_name(): return
if settings["workspace"] not in view.file_name(): return
if settings.get('auto_update_on_save'):
view.run_command('save_to_server')

def on_activated(self, view):
"""
1. Switch project to which view file is in
Expand Down
1 change: 1 addition & 0 deletions messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"2.9.5": "config/messages/2.9.5.md",
"2.9.6": "config/messages/2.9.6.md",
"2.9.7": "config/messages/2.9.7.md",
"2.9.8": "config/messages/2.9.8.md",
"install": "config/messages/install.txt"
}

0 comments on commit 8023422

Please sign in to comment.