From 994f0dcfb456e59a0c994cbab494a2007937f51f Mon Sep 17 00:00:00 2001 From: Nicholas Gates Date: Wed, 27 Mar 2019 09:47:34 +0000 Subject: [PATCH] Code lens example --- pyls/plugins/code_lens.py | 15 +++++++++++++++ setup.py | 1 + 2 files changed, 16 insertions(+) create mode 100644 pyls/plugins/code_lens.py diff --git a/pyls/plugins/code_lens.py b/pyls/plugins/code_lens.py new file mode 100644 index 00000000..4d8555d0 --- /dev/null +++ b/pyls/plugins/code_lens.py @@ -0,0 +1,15 @@ +from pyls import hookimpl + + +@hookimpl +def pyls_code_lens(): + return [{ + 'range': { + 'start': {'line': 0, 'character': 0}, + 'end': {'line': 0, 'character': 0}, + }, + 'command': { + 'title': 'My Code Lens', + 'command': 'my.code.lens', + }, + }] diff --git a/setup.py b/setup.py index 095e3b7d..54479db5 100755 --- a/setup.py +++ b/setup.py @@ -76,6 +76,7 @@ ], 'pyls': [ 'autopep8 = pyls.plugins.autopep8_format', + 'code_lens = pyls.plugins.code_lens', 'jedi_completion = pyls.plugins.jedi_completion', 'jedi_definition = pyls.plugins.definition', 'jedi_hover = pyls.plugins.hover', pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy