Skip to content

Commit 17b9749

Browse files
committed
Remove shell requirement to avoid escaping
1 parent 80dc15f commit 17b9749

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

typescript/commands/build.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ def run(self):
1717
tsconfig_dir = dirname(project_info["body"]["configFileName"])
1818
self.window.run_command("exec", {
1919
"cmd": [get_node_path(), TSC_PATH, "-p", tsconfig_dir],
20-
"file_regex": "^(.+?)\\((\\d+),(\\d+)\\): (.+)$",
21-
"shell": True
20+
"file_regex": "^(.+?)\\((\\d+),(\\d+)\\): (.+)$"
2221
})
2322
else:
2423
sublime.active_window().show_input_panel(
@@ -32,10 +31,10 @@ def run(self):
3231
def compile_inferred_project(self, params=""):
3332
file_name = self.window.active_view().file_name()
3433
cmd = [get_node_path(), TSC_PATH, file_name]
34+
print(cmd)
3535
if params != "":
3636
cmd.extend(params.split(' '))
3737
self.window.run_command("exec", {
3838
"cmd": cmd,
39-
"file_regex": "^(.+?)\\((\\d+),(\\d+)\\): (.+)$",
40-
"shell": True
39+
"file_regex": "^(.+?)\\((\\d+),(\\d+)\\): (.+)$"
4140
})

0 commit comments

Comments
 (0)