MCPcopy Index your code
hub / github.com/ternjs/tern_for_vim / tern_asCompletionIcon

Function tern_asCompletionIcon

script/tern.py:207–218  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

205 vim.command("let b:ternBufferSentAt = " + str(curSeq))
206
207def tern_asCompletionIcon(type):
208 if type is None or type == "?": return "(?)"
209 if type.startswith("fn("):
210 if vim.eval("g:tern_show_signature_in_pum") == "0":
211 return "(fn)"
212 else:
213 return type
214 if type.startswith("["): return "([])"
215 if type == "number": return "(num)"
216 if type == "string": return "(str)"
217 if type == "bool": return "(bool)"
218 return "(obj)"
219
220def tern_ensureCompletionCached():
221 cached = vim.eval("b:ternLastCompletionPos")

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected