(browse=False)
| 253 | return result |
| 254 | |
| 255 | def tern_lookupDocumentation(browse=False): |
| 256 | data = tern_runCommand("documentation") |
| 257 | if data is None: return |
| 258 | |
| 259 | doc = data.get("doc") |
| 260 | url = data.get("url") |
| 261 | if url: |
| 262 | if browse: return webbrowser.open(url) |
| 263 | doc = ((doc and doc + "\n\n") or "") + "See " + url |
| 264 | if doc: |
| 265 | vim.command("call tern#PreviewInfo(" + json.dumps(doc) + ")") |
| 266 | else: |
| 267 | vim.command("echo 'no documentation found'") |
| 268 | |
| 269 | def tern_echoWrap(data, name=""): |
| 270 | text = data |
nothing calls this directly
no test coverage detected