I’m trying to get Nodejs to work for me on Linux (or any platform, for that matter). I’m running build 3065. I’ve read the Porting Guide, as well as several threads on here regarding converting begin_edit() … end_edit() blocks to TextCommands, but for the life of me I can’t figure out how to do that for this code. The full code in question is here, and the function I’m having trouble with is:
def _output_to_view(self, output_file, output, clear=False, syntax="Packages/JavaScriptNext - ES6 Syntax/JavaScriptNext.tmLanguage"):
output_file.set_syntax_file(syntax)
edit = output_file.begin_edit()
if clear:
region = sublime.Region(0, self.output_view.size())
output_file.erase(edit, region)
output_file.insert(edit, 0, output)
output_file.end_edit(edit)
Does anyone have any ideas about turning this into a text command, or alternatively which arguments I should supply to begin_edit()?