-
Notifications
You must be signed in to change notification settings - Fork 43
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
Contribution by @DanCip00: PyRight integration #39
base: main
Are you sure you want to change the base?
Conversation
Removed extra await that blocks code completion using Python Servers
Bugfix - code completion with python servers
self.server.on_notification("language/actionableNotification", do_nothing) | ||
|
||
async with super().start_server(): | ||
self.logger.log("Starting jedi-language-server server process", logging.INFO) |
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.
Should be pyright?
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.
Thank you so much for the great PR! This solves a long-problem I have struggled with, to get pyright working. Can you please just address the 2 followings reviews and I will be quick to merge!
config, | ||
logger, | ||
repository_root_path, | ||
ProcessLaunchInfo(cmd="basedpyright-langserver --stdio", cwd=repository_root_path), |
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.
Could we please add at least a temporary setup_runtime_dependencies method, which for now just checks if "basedpyright-langserver" is installed, and if not, then links to a URL which guides how to install it, and fails gracefully with the error message
@@ -497,7 +503,8 @@ async def request_completions( | |||
|
|||
num_retries = 0 | |||
while response is None or (response["isIncomplete"] and num_retries < 30): | |||
await self.completions_available.wait() | |||
if self.language_id != 'python': |
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.
Would it instead be better to go to the langserver file for these language servers, and just mark the self.completions_available as True in the langserver setup?
From #10:
Removed extra await that blocks code completion for python Language Servers
Closes #9