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

WIP: handles_path #2038

Closed
wants to merge 1 commit into from
Closed

WIP: handles_path #2038

wants to merge 1 commit into from

Conversation

andyw8
Copy link
Contributor

@andyw8 andyw8 commented Oct 9, 2024

No description provided.

@andyw8 andyw8 added the enhancement New feature or request label Oct 9, 2024
sig { params(path: String).returns(T::Boolean) }
def handles_path?(path)
File.fnmatch("**/*.proto", path, File::FNM_PATHNAME | File::FNM_EXTGLOB)
end
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure this is needed since I think after the .proto change user would regenerate the relevant ruby file and trigger the file watching with appropriate constants. Mentioned verifying this as part of the issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah that would sense. I've never worked with .proto files. (cc @vinistock ).

@andyw8
Copy link
Contributor Author

andyw8 commented Nov 5, 2024

Will close since we're not actively working. Still useful for future reference.

@andyw8 andyw8 closed this Nov 5, 2024
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