-
Notifications
You must be signed in to change notification settings - Fork 33
Add LSP-rustowl #127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add LSP-rustowl #127
Conversation
|
any updates? |
|
The PR reviewer action is currently broken -> #128 I took a quick look over the plugin and I would recommend to create an For example: from LSP.plugin import LspTextCommand
from LSP.plugin.core.registry import get_position
class LspRustowlAnalyzeCommand(LspTextCommand):
session_name = SESSION_NAME
def run(self, edit: sublime.Edit, event: dict | None = None, point: int | None = None) -> None:
session = self.session_by_name(self.session_name)
if session:
pos = position(self.view, get_position(self.view, event, point))
session.send_request(...)
class Listener(sublime_plugin.EventListener):
def on_selection_modified(self, view: sublime.View):
if get_setting(view, "rustowl.hover_type") == "cursor" and len(view.sel()) > 0:
view.run_command("lsp_rustowl_analyze", {"point": view.sel()[0].a})
def on_hover(self, view, point, hover_zone):
if get_setting(view, "rustowl.hover_type") == "mouse":
view.run_command("lsp_rustowl_analyze", {"point": point}) |
|
Repository was updated, new version published. Now its possible to use |
|
bump |
|
bump x2 |
|
bububump? |
|
Apologies for the silence. I'm looking at your plugin. |
|
@CREAsTIVE could you please rebase to the latest main branch changes? (I think #128 makes the PR bot work) |
|
LGTM in any case |
STReviewBot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automated testing result: WARNING
Repo link: LSP-rustowl
Results help
Packages added:
- LSP-rustowl
Processing package "LSP-rustowl"
- WARNING: It looks like you're using platform-dependent code. Make sure you thought about the platform key in your pull request.
- File: plugin.py
- Line: 50, Column: 8
- WARNING: It looks like you're using platform-dependent code. Make sure you thought about the platform key in your pull request.
- File: plugin.py
- Line: 52, Column: 8
- WARNING: It looks like you're using platform-dependent code. Make sure you thought about the platform key in your pull request.
- File: plugin.py
- Line: 54, Column: 8
- WARNING: It looks like you're using platform-dependent code. Make sure you thought about the platform key in your pull request.
- File: plugin.py
- Line: 60, Column: 8
- WARNING: It looks like you're using platform-dependent code. Make sure you thought about the platform key in your pull request.
- File: plugin.py
- Line: 62, Column: 8
- WARNING: It looks like you're using platform-dependent code. Make sure you thought about the platform key in your pull request.
- File: plugin.py
- Line: 64, Column: 8
- WARNING: It looks like you're using platform-dependent code. Make sure you thought about the platform key in your pull request.
- File: plugin.py
- Line: 69, Column: 8
- WARNING: It looks like you're using platform-dependent code. Make sure you thought about the platform key in your pull request.
- File: plugin.py
- Line: 155, Column: 8
STReviewBot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automated testing result: WARNING
Repo link: LSP-rustowl
Results help
Packages added:
- LSP-rustowl
Processing package "LSP-rustowl"
- WARNING: It looks like you're using platform-dependent code. Make sure you thought about the platform key in your pull request.
- File: plugin.py
- Line: 50, Column: 8
- WARNING: It looks like you're using platform-dependent code. Make sure you thought about the platform key in your pull request.
- File: plugin.py
- Line: 52, Column: 8
- WARNING: It looks like you're using platform-dependent code. Make sure you thought about the platform key in your pull request.
- File: plugin.py
- Line: 54, Column: 8
- WARNING: It looks like you're using platform-dependent code. Make sure you thought about the platform key in your pull request.
- File: plugin.py
- Line: 60, Column: 8
- WARNING: It looks like you're using platform-dependent code. Make sure you thought about the platform key in your pull request.
- File: plugin.py
- Line: 62, Column: 8
- WARNING: It looks like you're using platform-dependent code. Make sure you thought about the platform key in your pull request.
- File: plugin.py
- Line: 64, Column: 8
- WARNING: It looks like you're using platform-dependent code. Make sure you thought about the platform key in your pull request.
- File: plugin.py
- Line: 69, Column: 8
- WARNING: It looks like you're using platform-dependent code. Make sure you thought about the platform key in your pull request.
- File: plugin.py
- Line: 155, Column: 8
Done, thanks for response :D |
|
Did you verify your plug-in works on macOS, Linux and Windows? |
I did verify it on windows, forget about other platforms, my bad. I will come back when I check the functionality on other platforms |
https://github.com/CREAsTIVE/LSP-rustowl