8000 Make LSP Hover non-experimental (removes `--enable-experimental-lsp-hover`) by jvilk-stripe · Pull Request #990 · sorbet/sorbet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Make LSP Hover non-experimental (removes --enable-experimental-lsp-hover) #990

< 8000 /div>
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

Merged
merged 2 commits into from
Jun 21, 2019

Conversation

jvilk-stripe
Copy link
Collaborator
@jvilk-stripe jvilk-stripe commented Jun 21, 2019

Make LSP Hover non-experimental.

Hover works well enough to be enabled for everyone. If there is a bug, it is easy to add a new test case to Sorbet and iterate on a solution. The only bug I am currently aware of involves hover information for proc arguments at their declaration sites.

In real-world use, hover does not appear to cause any issues with editor responsiveness. In particular, VS Code cancels hover if you move your mouse away, so mousing over many things during a slow path won't dramatically interrupt edit batching.

Motivation

Stabilizing IDE features.

Test plan

Automated tests already exist.

Note that this is going to break those who passed --enable-experimental-lsp-hover before.

Hover works well enough to be enabled for everyone. If there is a bug, it is easy to add a new test case to Sorbet and iterate on a solution.

In real-world uses, hover does not appear to cause any issues with typechecking speed. In particular, VS Code cancels hover if you move your mouse away, so mousing over many things during a slow path won't interrupt edit batching.
@jvilk-stripe jvilk-stripe requested a review from a team June 21, 2019 21:25
@ghost ghost requested review from DarkDimius and removed request for a team June 21, 2019 21:25
@@ -311,7 +311,6 @@ cxxopts::Options buildOptions() {
options.add_options("advanced")("watchman-path",
"Path to watchman executable. Defaults to using `watchman` on your PATH.",
cxxopts::value<string>()->default_value(empty.watchmanPath));
options.add_options("advanced")("enable-experimental-lsp-hover", "Enable experimental LSP feature: Hover");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this will break people who pass this flag.
I'm fine with that(flag is experimental), but this is worth noting in commit message.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will edit the merge commit message to note the issue.

Copy link
Collaborator
@DarkDimius DarkDimius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated PR message to include the incompatibility note.

@DarkDimius
Copy link
Collaborator

Super excited for this!

@jvilk-stripe jvilk-stripe changed the title Make LSP Hover non-experimental. Make LSP Hover non-experimental (removes --enable-experimental-lsp-hover) Jun 21, 2019
@jvilk-stripe jvilk-stripe merged commit f38cc0b into master Jun 21, 2019
@jvilk-stripe jvilk-stripe deleted the jvilk-enable-hover branch June 21, 2019 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0