Skip to content

Editor Support Help Thread #127

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

Open
ms-jpq opened this issue Apr 16, 2025 · 0 comments
Open

Editor Support Help Thread #127

ms-jpq opened this issue Apr 16, 2025 · 0 comments
Assignees

Comments

@ms-jpq
Copy link
Collaborator

ms-jpq commented Apr 16, 2025

Editor Support Help

  • Mega thread to receive support for editor support related questions.

Git(hub) installs

If you install this gem via gem 'openai', github: 'openai/openai-ruby', the solargraph auto-completion will not work by default.

To work around this, please set up a .solargraph.yml that include the path to the library files.

For example if you have vendored your gems via bundle config set --local path vendor/bundle, the config should look like:

---
max_files: 0
exclude: []
include:
  - "vendor/bundle/ruby/*/bundler/gems/openai-ruby-*/lib/**/*.rb"
  - '*.rb'

If set up correctly, your edit might show something similar to the example below

auto-completion.mov

In Editor Navigation

For goto definition support, Shopify LSP works quite well when you click on ruby constants.

For non-constants, i.e. method calls, the language services makes a best guess with matching symbols.

click-on-constants.mov
@ms-jpq ms-jpq pinned this issue Apr 16, 2025
@ms-jpq ms-jpq self-assigned this Apr 16, 2025
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

1 participant