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] Implement boilerplate add-on code #2088

Merged
merged 6 commits into from
Nov 22, 2024
Merged

Conversation

KaanOzkan
Copy link
Contributor

@KaanOzkan KaanOzkan commented Nov 22, 2024

Motivation

Extracting from main...tapioca-addon-feature-branch. Commits are edited from the originals to make the boilerplate up to date.

Implementation

Tests

Rails add-on already tests the add-on API so I don't think it's necessary

@KaanOzkan KaanOzkan added the enhancement New feature or request label Nov 22, 2024
@KaanOzkan KaanOzkan marked this pull request as ready for review November 22, 2024 20:44
@KaanOzkan KaanOzkan requested a review from a team as a code owner November 22, 2024 20:44
@@ -45,6 +45,8 @@ Sorbet/TrueSigil:
Include:
- "**/*.rb"
- "**/*.rake"
Exclude:
- "lib/ruby_lsp/tapioca/server_addon.rb"
Copy link
Contributor Author

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)

@@ -25,9 +25,6 @@ class Source < URI::File
# have the uri gem in their own bundle and thus not use a compatible version.
PARSER = T.let(const_defined?(:RFC2396_PARSER) ? RFC2396_PARSER : DEFAULT_PARSER, RFC2396_Parser)

alias_method(:gem_name, :host)
alias_method(:line_number, :fragment)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Causes re-definition error for source URI

@KaanOzkan KaanOzkan merged commit 5434fa6 into main Nov 22, 2024
29 of 30 checks passed
@KaanOzkan KaanOzkan deleted the ko/tapioca-addon branch November 22, 2024 21:30
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