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',
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: