Skip to content
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

Autocomplete/documentation does not work #28

Closed
mwoskowicz opened this issue Feb 24, 2018 · 6 comments
Closed

Autocomplete/documentation does not work #28

mwoskowicz opened this issue Feb 24, 2018 · 6 comments

Comments

@mwoskowicz
Copy link

mwoskowicz commented Feb 24, 2018

VSCode 1.20.1

When I type and press ctrl+space, the methods do show but there's no documentation.

image

I have gem installed. Should anything else be done to make this working?

@castwide
Copy link
Owner

What version of the gem are you using? This is what I get with 0.17.2:

image

@castwide
Copy link
Owner

I was able to reproduce this issue when I opened the file alone without opening a folder. I'll look into it.

image

@castwide
Copy link
Owner

The problem was in the server. It didn't cache an API map for undefined workspaces, so the extension couldn't resolve details for completion items.

A fix is pushed to the castwide/solargraph master branch. It should work correctly in gem version 0.17.3.

@mwoskowicz
Copy link
Author

mwoskowicz commented Feb 27, 2018

Thanks @castwide
One more thing, a little offtopic. Is it still possible to set documentation to be written inline under function name instead of in the right panel? Couldn't find such option.
Screen as example:
image

@castwide
Copy link
Owner

@mwoskowicz The right panel is a feature of VS Code itself. They changed the appearance of completion items a few versions ago. That screen capture is based on VS Code from March 2017. I should update the gif in the README.

Unfortunately, I don't know of a way to change the layout. If there's a configuration setting for it, I haven't been able to find it.

@castwide
Copy link
Owner

castwide commented Mar 1, 2018

Fix published in gem v0.17.3.

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

No branches or pull requests

2 participants