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

Explore adding meta-programming previews #208

Closed
vinistock opened this issue Jul 15, 2022 · 1 comment
Closed

Explore adding meta-programming previews #208

vinistock opened this issue Jul 15, 2022 · 1 comment
Labels
enhancement New feature or request pinned This issue or pull request is pinned and won't be marked as stale

Comments

@vinistock
Copy link
Member

It would help developers to better visualize meta-programming, if we could somehow provide a preview of what the result is going to be. Something like

class Foo
  ["bar", "baz", "bat"]. each do |name|
    # Meta-programming preview
    # def name
    #  process(name).to_sym
    # end
    define_method(name) { process(name).to_sym }
  end

  def process(string)
    # ...
  end
end

This could either be a part of inlay hints or a custom request, depending on how the visualization happens.

@vinistock vinistock mentioned this issue Jul 15, 2022
@vinistock vinistock added enhancement New feature or request pinned This issue or pull request is pinned and won't be marked as stale labels Jul 20, 2023
andyw8 pushed a commit to andyw8/ruby-lsp that referenced this issue Mar 2, 2024
…ypes/node-18.7.14

Bump @types/node from 18.7.11 to 18.7.14
@vinistock
Copy link
Member Author

Closing this for now as it doesn't seem like we'll be exploring it soon.

@vinistock vinistock closed this as not planned Won't fix, can't repro, duplicate, stale Aug 12, 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 pinned This issue or pull request is pinned and won't be marked as stale
Projects
None yet
Development

No branches or pull requests

1 participant