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

[Tapioca add-on] Add ServerAddon boilerplate #2035

Merged

Conversation

KaanOzkan
Copy link
Contributor

Motivation

Add ServerAddon usage to be called by Rails app based on main...andyw8/tapioca-lsp

Implementation

Tests

@KaanOzkan KaanOzkan changed the title [Tapioca add-on] Add Server Addon boilerplate [Tapioca add-on] Add ServerAddon boilerplate Oct 7, 2024
@KaanOzkan KaanOzkan force-pushed the ko/add-server-addon-boilerplate branch from d2aba8c to f8e9851 Compare October 7, 2024 20:02
@KaanOzkan KaanOzkan added the enhancement New feature or request label Oct 7, 2024
@KaanOzkan KaanOzkan marked this pull request as ready for review October 7, 2024 20:03
@KaanOzkan KaanOzkan requested a review from a team as a code owner October 7, 2024 20:03
@@ -45,6 +45,8 @@ Sorbet/TrueSigil:
Include:
- "**/*.rb"
- "**/*.rake"
Exclude:
- "lib/ruby_lsp/tapioca/server_addon.rb"
Copy link
Contributor Author

@KaanOzkan KaanOzkan Oct 7, 2024

Choose a reason for hiding this comment

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

Following the discussion on Shopify/ruby-lsp-rails#469 (comment). I'd like to somehow ensure sigs don't get added to the file in the future.

lib/ruby_lsp/tapioca/addon.rb Outdated Show resolved Hide resolved
lib/ruby_lsp/tapioca/server_addon.rb Outdated Show resolved Hide resolved
lib/ruby_lsp/tapioca/server_addon.rb Show resolved Hide resolved
@KaanOzkan KaanOzkan force-pushed the ko/add-server-addon-boilerplate branch from f8e9851 to a47db64 Compare October 7, 2024 20:14
@KaanOzkan KaanOzkan force-pushed the ko/add-server-addon-boilerplate branch from a47db64 to 0935d45 Compare October 7, 2024 20:30
@@ -62,6 +61,9 @@ def version

sig { params(changes: T::Array[{ uri: String, type: Integer }]).void }
def workspace_did_change_watched_files(changes)
return unless T.must(@global_state).experimental_features
return unless @rails_runner_client # Client is not ready
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I personally prefer multiple unless calls over combining them and thinking of De Morgan's Laws 😬

@KaanOzkan KaanOzkan merged commit a108c1e into tapioca-addon-feature-branch Oct 7, 2024
28 checks passed
@KaanOzkan KaanOzkan deleted the ko/add-server-addon-boilerplate branch October 7, 2024 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants