MCPcopy
hub / github.com/davidhalter/jedi-vim / get_script

Function get_script

pythonx/jedi_vim.py:304–317  ·  view source on GitHub ↗
(source=None)

Source from the content-addressed store, hash-verified

302
303@catch_and_print_exceptions
304def get_script(source=None):
305 jedi.settings.additional_dynamic_modules = [
306 b.name for b in vim.buffers if (
307 b.name is not None and
308 b.name.endswith('.py') and
309 b.options['buflisted'])]
310 if source is None:
311 source = '\n'.join(vim.current.buffer)
312 buf_path = vim.current.buffer.name
313 if not buf_path:
314 # If a buffer has no name its name is an empty string.
315 buf_path = None
316
317 return jedi.Script(source, path=buf_path, project=get_project())
318
319
320def get_pos(column=None):

Callers 5

completionsFunction · 0.85
gotoFunction · 0.85
usagesFunction · 0.85
show_documentationFunction · 0.85
show_call_signaturesFunction · 0.85

Calls 1

get_projectFunction · 0.85

Tested by

no test coverage detected