MCPcopy Index your code
hub / github.com/SirVer/ultisnips / _update

Method _update

pythonx/UltiSnips/text_objects/shell_code.py:72–79  ·  view source on GitHub ↗
(self, done, buf)

Source from the content-addressed store, hash-verified

70 self._tmpdir = _get_tmp()
71
72 def _update(self, done, buf):
73 if not self._tmpdir:
74 output = "Unable to find executable tmp directory, check noexec on /tmp"
75 else:
76 output = _run_shell_command(self._code, self._tmpdir)
77 self.overwrite(buf, output)
78 self._parent._del_child(self)
79 return True

Callers

nothing calls this directly

Calls 3

_run_shell_commandFunction · 0.85
overwriteMethod · 0.80
_del_childMethod · 0.80

Tested by

no test coverage detected