Skip to content

Commit c6febbf

Browse files
committed
Merge pull request #236 from hoanhtien/lastBuildParams
Display last build parameters in build dialog.
2 parents 88af18b + 73882a7 commit c6febbf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

typescript/commands/build.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66

77
class TypescriptBuildCommand(sublime_plugin.WindowCommand):
8+
build_parameters = ""
9+
810
def run(self):
911
if get_node_path() is None:
1012
print("Cannot find node. Build cancelled.")
@@ -23,7 +25,7 @@ def run(self):
2325
else:
2426
sublime.active_window().show_input_panel(
2527
"Build parameters: ",
26-
"", # initial text
28+
TypescriptBuildCommand.build_parameters, # initial text
2729
lambda params: self.compile_inferred_project(file_name, params),
2830
None, # on change
2931
None # on cancel
@@ -38,3 +40,4 @@ def compile_inferred_project(self, file_name, params=""):
3840
"cmd": cmd,
3941
"file_regex": "^(.+?)\\((\\d+),(\\d+)\\): (.+)$"
4042
})
43+
TypescriptBuildCommand.build_parameters = params

0 commit comments

Comments
 (0)