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

fix: add lsp in dev container #20851

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

dambar08
Copy link
Contributor

@dambar08 dambar08 commented Apr 8, 2024

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

We do not use ruby version manager in dev container, which does not install ruby-lsp server automatically. Causing the ruby-lsp server from starting.

QA Instructions, Screenshots, Recordings

Please replace this line with instructions on how to test your changes, a note
on the devices and browsers this has been tested on, as well as any relevant
images for UI changes.

UI accessibility checklist

If your PR includes UI changes, please utilize this checklist:

  • Semantic HTML implemented?
  • Keyboard operability supported?
  • Checked with axe DevTools and addressed Critical and Serious issues?
  • Color contrast tested?

Added/updated tests?

We encourage you to keep the code coverage percentage at 80% and above.

  • Yes
  • No, and this is why: Dev containers workflow, so no test required
  • I need help with writing tests

@dambar08 dambar08 requested review from a team as code owners April 8, 2024 21:14
@dambar08 dambar08 requested review from lightalloy and maestromac and removed request for a team April 8, 2024 21:14
Copy link
Contributor

github-actions bot commented Apr 8, 2024

Thank you for opening this PR! We appreciate you!

For all pull requests coming from third-party forks we will need to
review the PR before we can process it through our CI pipelines.

A Forem Team member will review this contribution and get back to
you as soon as possible!

Copy link
Contributor

github-actions bot commented Apr 8, 2024

Uffizzi Ephemeral Environment Deploying

☁️ https://app.uffizzi.com/github.com/forem/forem/pull/20851

⚙️ Updating now by workflow run 8606826286.

What is Uffizzi? Learn more!

@@ -127,6 +127,7 @@ group :development do
gem "i18n-tasks", "~> 1.0.11" # Helpers to find and manage missing and unused translations
gem "listen", "~> 3.7", require: false # Helps 'listen' to file system modifications events (also used by other gems like guard)
gem "memory_profiler", "~> 1.0", require: false # Memory profiling routines for Ruby 2.3+
gem "ruby-lsp", "~> 0.16.2", require: false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be necessary. Upon devcontainer launch, vscode lsp extension will install ruby-lsp. You can see it working in the output tab

image
image

@lightalloy lightalloy removed their request for review May 24, 2024 10:41
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

Successfully merging this pull request may close these issues.

None yet

2 participants