Skip to content

Commit 9296d95

Browse files
small fixes
1 parent 4fec46b commit 9296d95

File tree

6 files changed

+15
-14
lines changed

6 files changed

+15
-14
lines changed

Default.sublime-commands

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[
2-
{ "caption": "JavaScript Enhancements Bookmarks: Toggle on Current Project", "command": "toggle_project_bookmarks"},
2+
{ "caption": "JavaScript Enhancements Bookmarks: Toggle on Current View", "command": "toggle_project_bookmarks"},
33
{ "caption": "JavaScript Enhancements Bookmarks: Show All on Current Project", "command": "show_project_bookmarks", "args": {"type": "global_project"} },
44
{ "caption": "JavaScript Enhancements Bookmarks: Show on Current View Project", "command": "show_project_bookmarks", "args": {"type": "view_project"} },
55
{ "caption": "JavaScript Enhancements Bookmarks: Delete All on Current Project", "command": "delete_project_bookmarks", "args": {"type": "global_project"} },

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ Manually:
6565
- Download [latest release](https://github.com/pichillilorenzo/JavaScriptEnhancements/releases) and unzip it into your **Packages folder** (go to `Preferences > Browse Packages...` menu item to open this folder)
6666

6767
## Usage
68-
[Wiki](https://github.com/pichillilorenzo/JavaScriptEnhancements/wiki) in progress.
68+
69+
[See the Wiki](https://github.com/pichillilorenzo/JavaScriptEnhancements/wiki).
6970

7071
## Quick Overview
7172

_generated_2018_01_02_at_00_50_45.py renamed to _generated_2018_01_02_at_13_16_08.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2905,7 +2905,7 @@ def run(self, edit, **args):
29052905
js_syntax += constructor_body
29062906
js_syntax += "\n\t}\n\n"
29072907
js_syntax += get_set
2908-
js_syntax += "\n}"
2908+
js_syntax += "\n\n}"
29092909
js_syntax = Util.add_whitespace_indentation(view, regions, js_syntax)
29102910
view.replace(edit, regions, js_syntax)
29112911

@@ -2947,7 +2947,7 @@ def run(self, edit, **args):
29472947
if item :
29482948
lines = item.get("region_string_stripped")[1:-1].split("\n")
29492949
str_splitted = list()
2950-
str_splitted.append("var str = \"\"")
2950+
str_splitted.append("let str = \"\"")
29512951
for line in lines :
29522952
line = line if scope_string == "string.template.js" else line.strip()[0:-1]
29532953
line = line.strip()
@@ -4306,10 +4306,10 @@ def run(self, edit):
43064306
set_bookmarks(True)
43074307

43084308
def is_enabled(self):
4309-
return is_project_view(self.view) and is_javascript_project()
4309+
return True if is_project_view(self.view) and is_javascript_project() else False
43104310

43114311
def is_visible(self):
4312-
return is_project_view(self.view) and is_javascript_project()
4312+
return True if is_project_view(self.view) and is_javascript_project() else False
43134313

43144314
class add_project_bookmark_hereCommand(sublime_plugin.TextCommand) :
43154315

@@ -4322,10 +4322,10 @@ def run(self, edit):
43224322
add_bookmark(view, row)
43234323

43244324
def is_enabled(self):
4325-
return is_project_view(self.view) and is_javascript_project()
4325+
return True if is_project_view(self.view) and is_javascript_project() else False
43264326

43274327
def is_visible(self):
4328-
return is_project_view(self.view) and is_javascript_project()
4328+
return True if is_project_view(self.view) and is_javascript_project() else False
43294329

43304330
class show_project_bookmarksCommand(sublime_plugin.TextCommand):
43314331

helper/bookmarks/main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ def run(self, edit):
139139
set_bookmarks(True)
140140

141141
def is_enabled(self):
142-
return is_project_view(self.view) and is_javascript_project()
142+
return True if is_project_view(self.view) and is_javascript_project() else False
143143

144144
def is_visible(self):
145-
return is_project_view(self.view) and is_javascript_project()
145+
return True if is_project_view(self.view) and is_javascript_project() else False
146146

147147
class add_project_bookmark_hereCommand(sublime_plugin.TextCommand) :
148148

@@ -155,10 +155,10 @@ def run(self, edit):
155155
add_bookmark(view, row)
156156

157157
def is_enabled(self):
158-
return is_project_view(self.view) and is_javascript_project()
158+
return True if is_project_view(self.view) and is_javascript_project() else False
159159

160160
def is_visible(self):
161-
return is_project_view(self.view) and is_javascript_project()
161+
return True if is_project_view(self.view) and is_javascript_project() else False
162162

163163
class show_project_bookmarksCommand(sublime_plugin.TextCommand):
164164

helper/create_class_from_object_literal_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def run(self, edit, **args):
4444
js_syntax += constructor_body
4545
js_syntax += "\n\t}\n\n"
4646
js_syntax += get_set
47-
js_syntax += "\n}"
47+
js_syntax += "\n\n}"
4848
js_syntax = Util.add_whitespace_indentation(view, regions, js_syntax)
4949
view.replace(edit, regions, js_syntax)
5050

helper/split_string_lines_to_variable_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def run(self, edit, **args):
1414
if item :
1515
lines = item.get("region_string_stripped")[1:-1].split("\n")
1616
str_splitted = list()
17-
str_splitted.append("var str = \"\"")
17+
str_splitted.append("let str = \"\"")
1818
for line in lines :
1919
line = line if scope_string == "string.template.js" else line.strip()[0:-1]
2020
line = line.strip()

0 commit comments

Comments
 (0)