Giter Club home page Giter Club logo

Comments (8)

castwide avatar castwide commented on June 5, 2024

It should, but there are circumstances where some suggestions may be missing or incomplete. There's a known issue with bundled gems that should be fixed in the next version.

If you're having trouble with a particular gem, let me know the details and I'll see if there's a fix.

from vscode-solargraph.

bgmat avatar bgmat commented on June 5, 2024

Hi @castwide
Thank you for looking into it!
This is the gem I'm using: https://github.com/Shopify/shopify_api

from vscode-solargraph.

castwide avatar castwide commented on June 5, 2024

During testing, I found a bug that stops the extension from providing suggestions when a workspace (folder) isn't open. It's actually a problem in the API server, not the extension. It'll be fixed in the next version of the gem.

With the current versions of the extension and gem, I was able to get Shopify suggestions by doing the following:

  • Install the shopify_api gem.
  • Open a folder in VS Code.
  • Open or create a file with the .rb extension.
  • Edit the file.

Results:

image

from vscode-solargraph.

bgmat avatar bgmat commented on June 5, 2024

Yes, it works in this sequence, thanks!
However,I found a case when the results are inconsistent. Maybe you could look into this.

If I type "ShopifyAPI.S" like in the image below, I get one result (popping up as I type)
image

but, if I hit escape, then CTRL+Space to get the autocomplete, I get this:
image

This is not happening for "ShopifyAPI::S", only for "ShopifyAPI.S" ...

from vscode-solargraph.

castwide avatar castwide commented on June 5, 2024

Interesting. It appears to be an issue with case sensitivity. With a lower-case S, you get the expected method suggestions. I'll look into it.

from vscode-solargraph.

castwide avatar castwide commented on June 5, 2024

Incidentally, today's gem version update fixes the API server issue, so completion should work when you don't have a workspace/folder open.

from vscode-solargraph.

castwide avatar castwide commented on June 5, 2024

In the current gem, completion items in the above cases are better, although case sensitivity can still cause some minor inconsistencies.

  • ShopifyApi. returns the expected methods. Typing S filters without case sensitivity.
  • ShopifyApi.S, escape, and ctr+space returns nothing.

This seems reasonable enough to me.

from vscode-solargraph.

castwide avatar castwide commented on June 5, 2024

This issue should be resolved in the most recent versions of the gem, including the discrepancies between completion filters, which are now case-insensitive by default. If anyone still has problems, please feel free to open a new issue.

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.