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

Document how addons can listen for file changes #1972

Merged
merged 1 commit into from May 2, 2024

Conversation

Earlopain
Copy link
Contributor

Motivation

Addons may want to listen for changes to files and do something about it. ruby-lsp-rails for example listens for structure.sql to restart the rails runner for updated column information, after Shopify/ruby-lsp-rails#341 is merged.

ruby-lsp itself wants to check for changes to the rubocop config in the server to resolve #1457

rubyfmt for ruby-lsp-rubyfmt appears to change behaviour depending on .gitignore and .rubyfmtignore.


I noticed that some activation methods didn't yet take the global state in the docs here . I've updated these in a separate commit here.

@Earlopain Earlopain requested a review from a team as a code owner April 25, 2024 12:36
Copy link
Contributor

@andyw8 andyw8 left a comment

Choose a reason for hiding this comment

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

Looks good to me but I'd like @vinistock to check it over too.

ADDONS.md Outdated Show resolved Hide resolved
ADDONS.md Outdated Show resolved Hide resolved
ADDONS.md Show resolved Hide resolved
ADDONS.md Show resolved Hide resolved
@andyw8 andyw8 added the server This pull request should be included in the server gem's release notes label May 1, 2024
ADDONS.md Outdated Show resolved Hide resolved
@Earlopain
Copy link
Contributor Author

Earlopain commented May 1, 2024

I will redo updating the activate methods to take the global state after #1998 is merged so there are no conflicts.

@andyw8 andyw8 added the documentation Improvements or additions to documentation label May 1, 2024
ADDONS.md Show resolved Hide resolved
@vinistock vinistock merged commit a90f39d into Shopify:main May 2, 2024
21 of 22 checks passed
@vinistock
Copy link
Member

Thank you for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation server This pull request should be included in the server gem's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate .rubocop.yml watching to the server
3 participants