• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tomv564 / LSP / 1126
38%

Build:
DEFAULT BRANCH: master
Ran 31 Dec 2018 03:47PM UTC
Jobs 1
Files 40
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1126

push

travis-ci

tomv564
Add a bulb (#489)

* Add a bulb

* Delete unneeded import and switch from absolute to relative import

* Fire request on selection modified, on TextCommand and after Did Change event

Request needs to be send on selection modified, to determine whether to show the bulb or not by the caret position.

The request needs to be send when the TextCommand is run, because the command might be triggered from the phantom (error|warning|hint) pop-up and when it is triggered the caret might already be on a place where code action exist, so the mouse will trigger those code actions instead of the ones that were suppose to be triggered from the popup.

And finally the request needs to be send after the `textDocument/didChange`. So the code actions show suggestions for the current version of document and not for an outdated one.

* Introduce cache

Code actions get cached on each request, so when running the TextCommand the menu will be populated my cache.

However, hovers for warning, errors, hint can run the code action text command. In that case we need to fire a new request, by passing a flag `make_request`, so the code actions that will be displayed are related to the point from where the hover was triggered.

* Fix formating

* add icons

* format import

* Don't show the command in the right click menu, when 0 code actions

This is different from is_enabled because I don't want to disable the command from running, so the user get the `no code actions` popup

* Fix formating

* Remove return type

* Ignore type, https://github.com/python/mypy/issues/500#issuecomment-87460993

Don't know how to typehint debounce.t

* return None for __init__

* leave hover unchanged

* Remove cache and event listener, Add a command to update code actions

* Need to be at least 500ms

To avoid messages in status bar like `Request textDocument/codeAction failed with message. Debug failure. Expected 80 <= 50`

* Don't fire command in w... (continued)

874 of 3209 relevant lines covered (27.24%)

0.27 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1126.1 31 Dec 2018 03:47PM UTC 0
27.24
Travis Job 1126.1
Source Files on build 1126
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1126
  • b0ad8461 on github
  • Prev Build on master (#1123)
  • Next Build on master (#1133)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc