Giter Club home page Giter Club logo

Comments (4)

castwide avatar castwide commented on May 25, 2024

Confirmed.

The completionItem/resolve error should not be an error at all, since there are valid reasons for a completion item to have nothing to resolve; for example, the def keyword should be available as a completion item, but it doesn't have any documentation. It'll be fixed in gem version 0.18.2.

The "Invalid offset" error is more legitimate, but it probably shoudn't be sent to the client, since it usually just means that the document is in the process of being changed. I'll look for a reasonable solution.

from vscode-solargraph.

castwide avatar castwide commented on May 25, 2024

Gem 0.18.2 is published. It stops reporting both errors to the client.

from vscode-solargraph.

garyking avatar garyking commented on May 25, 2024

I can confirm it fixes it. But before the language server starts up, "def" allows me to auto-complete the function creation snippet like in my second GIF above, yet when the server starts up, it just shows me the dropdown as seen in the first GIF.

The first method is preferable, even though the second is what I actually see most of the time.

from vscode-solargraph.

castwide avatar castwide commented on May 25, 2024

The snippet is still there, but it appears below case-sensitive matches, i.e., everything that starts with d. The same thing happens in my setup. Here are my results with the snippet selected:

image

You can change where snippets appear with the editor.snippetSuggestions setting. Valid options are top, bottom, inline, and none.

from vscode-solargraph.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.