Giter Club home page Giter Club logo

byesig's Introduction

ByeSig

ByeSig is a VSCode plugin to temporarily hide Sorbet signatures in Ruby source files.

When active it fades and folds Sorbet sig lines and blocks:

Before: Screenshot before

After: Screenshot after

Options

  • VSCode commands: force show and hide
  • VSCode configuration:
    • opacity
    • backgroundColor
    • plugin on/off
    • fold on/off
    • gutter icon on/off

Contribution

Still super beta, any feedback / issue / pull request is welcomed.

byesig's People

Contributors

itarato avatar dependabot[bot] avatar busfox avatar

Stargazers

Nicholas La Roux avatar Mohamed Beydoun avatar Nikolay Ponomarev avatar Alex Filatov avatar Lekë Mula avatar Ben Stuart avatar Ben Aitcheson avatar Tomas Echeverri avatar Marcos Rubio avatar Catherine Cai avatar Jon G avatar Robb Shecter avatar

Watchers

 avatar Jon G avatar Ben Stuart avatar

byesig's Issues

Problem with matching single line signatures

Single line signatures could have extra stuff after the final } which doesn't seem to be handled properly by this extension. Note how the Rubocop disable comment throws off the signature matching:

image

Full opacity when sig is active/focused

Just found this extension and I think it'll help with readability. One issue is that the editing experience is a bit difficult with the sigs hidden. Thoughts on making it so that if my cursor is within a sig then it becomes "unhidden" temporarily until it loses focus?

No opacity when sig takes a param

In the code sample below, when (:foo) is present, the opacity is absent, but when removing it, it is again present.
So for some reason, adding this prevents byesig to identify sig code.

sig(:foo) do
    params(
        model_id: Integer
    ).void
end
def my_method
end

Thanks :).

T::Sig::WithoutRuntime sig is not detected

Hi!

Thanks for the work on this extension, loving it! ❤️

I have a small issue when using T::Sig::WithoutRuntime.sig, it looks like those signatures are not detected bby the extension and are not dimmed (or the opacity setting don't apply to them):

image

Any idea of what might be causing this?

Thanks! ❤️

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.