MCPcopy
hub / github.com/ternjs/tern_for_vim / tern_relativeFile

Function tern_relativeFile

script/tern.py:110–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108 tern_killServer(project)
109
110def tern_relativeFile():
111 filename = vim.eval("expand('%:p')").decode('utf-8')
112 return filename[len(tern_projectDir()) + 1:]
113
114def tern_bufferSlice(buf, pos, end):
115 text = ""

Callers 4

tern_fullBufferFunction · 0.85
tern_bufferFragmentFunction · 0.85
tern_runCommandFunction · 0.85
tern_lookupDefinitionFunction · 0.85

Calls 1

tern_projectDirFunction · 0.85

Tested by

no test coverage detected