-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
nixd/hover: hover documentation for options #526
nixd/hover: hover documentation for options #526
Conversation
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.
The unit test is insufficient because it just tests the old behaviour but I couldn't figure out how to test an actual docstring.
Just use
meson test -C <your-build-dir>
it will be executed automatically. The CHECK:
strings are obtained from command standard outputs.
Do this in your shell:
<installed-nixd-bin> --lit-test --nixos-options-expr="{ foo.bar = { _type = \"option\"; }; }" nixd/tools/nixd/test/hover-options.md
And it should emit some JSON outputs, prefix the important response with CHECK
and CHECK-NEXT
, just like other tests.
Currently the CI is failing because the behavior is not "old" (we can pop options doc now!)
https://github.com/nix-community/nixd/actions/runs/9584839786?pr=526
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.
Don't worry. I will help you update the test cases on this weekend.
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.
LGTM again
Closes #174
This patch implements hover documentation for options.