Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Commit

Permalink
add new lightning tokens command, support design/tokens/evt files
Browse files Browse the repository at this point in the history
  • Loading branch information
joeferraro committed Sep 19, 2016
1 parent fec8dc5 commit 025e188
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
10 changes: 9 additions & 1 deletion mavensmate.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,14 @@ def run(command):
def is_enabled(command):
return util.is_mm_project()

#displays new apex component dialog
class NewLightningTokens(sublime_plugin.ApplicationCommand):
def run(command):
mm.call('new-lightning-tokens', True, body={'args': { 'ui' : True }})

def is_enabled(command):
return util.is_mm_project()

####### <--END--> COMMANDS THAT USE THE MAVENSMATE UI ##########

class MavensStubCommand(sublime_plugin.WindowCommand):
Expand Down Expand Up @@ -337,7 +345,7 @@ def on_load_async(self, view):
view.set_syntax_file(os.path.join("Packages","MavensMate","sublime","lang","Visualforce.sublime-syntax"))
else:
view.set_syntax_file(os.path.join("Packages/MavensMate/sublime/lang/Visualforce.sublime-syntax"))
elif ext == '.app' or ext == '.auradoc' or ext == '.cmp':
elif ext == '.app' or ext == '.auradoc' or ext == '.cmp' or ext == '.design' or ext == '.tokens' or ext == '.evt':
if "linux" in sys.platform or "darwin" in sys.platform:
view.set_syntax_file(os.path.join("Packages","XML","XML.tmLanguage"))
else:
Expand Down
5 changes: 4 additions & 1 deletion mavensmate.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ To override default MavensMate settings, modify user-specific settings (MavensMa
".css",
".js",
".evt",
".cmp"
".cmp",
".tokens",
".svg",
".design"
],

//local server port (do not change unless you know what you're doing)
Expand Down
4 changes: 4 additions & 0 deletions sublime/menus/Main.sublime-menu
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@
{
"caption": "New Lighting Interface...",
"command": "new_lightning_interface"
},
{
"caption": "New Lighting Tokens...",
"command": "new_lightning_tokens"
}
]
},
Expand Down

0 comments on commit 025e188

Please sign in to comment.