-
Notifications
You must be signed in to change notification settings - Fork 344
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
[LSP] Find usages of LSP returns null #921
Comments
Note |
Currently it is passing for js. However it fails for the env=ruby-wd.
|
Gauge should honour LSP protocol. I should be able to fire any request after initialized. However find-usages is not working as expected after initialized.
is giving error -
Steps to replicate
|
From LSP Point of view, Currently The Test Failure Probable Solution If the client doesn't support dynamic registration, we can still support runner capabilities if we initialize the runner in LSP |
Plan of Action We plan to initialize gauge in the After this when gauge receives This will ensure that client is not sending any request which gauge is not prepared to handle because only after runner initialization is done, we will add the feature dynamically and only when runner initialization and feature addition is done, client will get a notification about the new features like codeLens (which would initially be false and after runner is up, it will be dynamically added). This will also make sure that if runner fails to start, it won't affect the features that gauge can handle by itself without invoking the runner. |
Consider the following case Since the client is not the one sending the request, how should this be handled? |
@sguptatw Not all diagnostics need to be published at the time of opening a project. Since runner takes time to come up, we can publish the parse errors as diagnostics once a file opened. Once runner is up we can always republish the diagnostics; this time with all errors, parse errors and validation errors. This way even if runner takes time to come up, the user will still be able to see all parse errors. |
Ruby LSP tests are passing on osx. Do we need windows support for ruby? |
With the latest working as expected |
Expected behavior
Should give the usage statistics
Actual behavior
Steps to replicate
Version
The text was updated successfully, but these errors were encountered: