Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
4 changes: 2 additions & 2 deletions Main.sublime-menu
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
{
"command": "open_file", "args":
{
"file": "${packages}/DocBlockr/Base File.sublime-settings"
"file": "${packages}/DocBlockr/DocBlockr.sublime-settings"
},
"caption": "Settings – Default"
},
{
"command": "open_file", "args":
{
"file": "${packages}/User/Base File.sublime-settings"
"file": "${packages}/User/DocBlockr.sublime-settings"
},
"caption": "Settings – User"
},
Expand Down
8 changes: 4 additions & 4 deletions jsdocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def getParser(view):
scope = view.scope_name(view.sel()[0].end())
res = re.search('\\bsource\\.([a-z+\-]+)', scope)
sourceLang = res.group(1) if res else 'js'
viewSettings = view.settings()
viewSettings = sublime.load_settings("DocBlockr.sublime-settings")

if sourceLang == "php":
return JsdocsPHP(viewSettings)
Expand Down Expand Up @@ -154,7 +154,7 @@ def run(self, edit, inline=False):
def initialize(self, v, inline=False):
point = v.sel()[0].end()

self.settings = v.settings()
self.settings = sublime.load_settings("DocBlockr.sublime-settings")

# trailing characters are put inside the body of the comment
self.trailingRgn = sublime.Region(point, v.line(point).end())
Expand Down Expand Up @@ -1384,7 +1384,7 @@ def run(self, edit):
v = self.view
lineRegion = v.line(v.sel()[0])
line = v.substr(lineRegion)
spaces = max(0, v.settings().get("jsdocs_indentation_spaces", 1))
spaces = max(0, sublime.load_settings("DocBlockr.sublime-settings").get("jsdocs_indentation_spaces", 1))
v.replace(edit, lineRegion, re.sub("^(\\s*\\*)\\s*$", "\\1\n\\1" + (" " * spaces), line))


Expand All @@ -1397,7 +1397,7 @@ class JsdocsWrapLines(sublime_plugin.TextCommand):

def run(self, edit):
v = self.view
settings = v.settings()
settings = sublime.load_settings("DocBlockr.sublime-settings")
rulers = settings.get('rulers')
tabSize = settings.get('tab_size')

Expand Down