Comments (8)
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.
Hi @castwide
Thank you for looking into it!
This is the gem I'm using: https://github.com/Shopify/shopify_api
from vscode-solargraph.
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:
from vscode-solargraph.
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)
but, if I hit escape, then CTRL+Space to get the autocomplete, I get this:
This is not happening for "ShopifyAPI::S", only for "ShopifyAPI.S" ...
from vscode-solargraph.
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.
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.
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. TypingS
filters without case sensitivity.ShopifyApi.S
,escape
, andctr+space
returns nothing.
This seems reasonable enough to me.
from vscode-solargraph.
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)
- Fails to start in VSCode: "[Errno::EBADF] Bad file descriptor - ruby" HOT 1
- Error: spawn solargraph ENOENT
- Error in diagnostics: RuboCop returned invalid data HOT 2
- Poll: is vscode-solargraph reliable/performant for medium-size Rails apps? HOT 2
- Rename Symbol Not Working
- autoformat in vs code deleting comments HOT 2
- Allow Setting the Port of externalServer to a String HOT 1
- Can not read properties of undefined HOT 2
- RuboCop --auto-correct is deprecated; use --autocorrect instead HOT 2
- Conflicting VS Code keybindings to search Ruby documentation HOT 1
- Document query was stuck in Rails project. HOT 1
- No Intellisense for Gems installed in custom home path HOT 1
- Completion menu only shows "Loading..." until I restart Solargraph HOT 3
- Request textDocument/documentHighlight failed. HOT 3
- Logging support unknown langId to enable trace setting
- solargraph not updating on changes HOT 1
- Logo in Visual Studio Marketplace HOT 3
- string arrays as default keyword arguments throws coloring off HOT 2
- It doesn't seem to be working: what theme should I use with Solargraph? HOT 1
- Request textDocument/definition failed when clicking on require HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-solargraph.