Git Product home page Git Product logo

haml-vscode's People

Contributors

aki77 avatar bensaufley avatar bnjamin avatar guivieiras avatar karuna avatar kylecrum avatar phacks avatar sman591 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

haml-vscode's Issues

Completion

Thanks for the extension. Our team is benefiting tremendously from your hard work!

Should we implement completion? Something simple like "complete based on all words in the current file" would be easy to do, I think. Want a hand?

Code coloring of filter blocks breaks when there are empty lines

The following is valid HAML:

:ruby
  my_var = "blah"
  # No spaces on the below line

  another_var = "blarg"

%div

Of course in this limited example, that extra line between my_var and another_var seems superfluous. But for larger blocks of Ruby (or other code), it makes sense to break up bits of the code. Ideally, I'm not putting large blocks of Ruby in the middle of my HAML, but โ€ฆ sometimes it must be done.

Anyway: the current configuration treats that empty line as the end of the :ruby block, and the following lines are just rendered in white text:

screen shot 2017-08-30 at 10 37 36 am

If I were to add indentation (in this case, two spaces, to match the other lines), it would behave as expected:

screen shot 2017-08-30 at 10 38 46 am

But my code editor and my Rubocop config both don't like that โ€“ the former automatically removes trailing whitespace; the latter complains if I manage to include it.

tl;dr: If I have an empty line without indentation between lines in a :filter block, I expect code coloring to continue to the next line (second screenshot above); I experience white text instead (first screenshot)

Multiline Attribute Support - Haml v5.2.1

Well it looks like Haml now has proper multiline attributes support. https://github.com/haml/haml/releases/tag/5.2.1

Just giving you a heads up as it would be great to get support for these into the extension. Thanks!

What we will now be able to write:

.messages-overflow-container{"data-simplebar": true}
    .messages{
      data: { controller: "chat-messages" }
   }
  .like-notification{
    data: { controller: "reaction-notification" } }
  - unless video.finished?
    .message-write{
      data: { 
        "controller": "chat", 
        "show-when-logged-in": true 
      }
    }
      .chat-controls
        .write-area{
          placeholder: 'Send a message', 
          contenteditable: true, 
          role: "textbox", 
          data: {
            action: "keydown->chat#chatBoxKeyDown", 
            target: "chat.messageInput"
          }
        }
        = render "shared/reaction_button"
    .message-login-prompt{data: { "show-when-logged-out": true }}
      %button{
        data: {
          action: "authentication#showModal"
        }
      } Login To Chat

Ruby syntax highlighting in `:ruby` code blocks

Right now if there's a :ruby code block in the haml partial, it doesn't have the proper code highlighting. I imagine this is a broader issue with any other code inserts, but it works with :javascript blocks.

Major slowdown with recent VS Code Update

This might be a shot in the dark, but after a recent (Feb 1st 2018) VS Code update (I'm now running Version 1.19.3 (1.19.3)), enabling the Better HAML extension causes a terrible slowdown during editing. I'm seeing crazy latency when typing (> 1 second per character). It's made this extension impossible to use.

Strangely, I experience the slowdown only when editing non-haml files (e.g. .rb). I don't experience the slowdown when editing HAML files.

Enabling/disabling the extension also fixes/causes the slowdown I'm experiences. So maybe it's a dependency of Better HAML that's to blame? I figured I'd start here though.

No syntax highlighting within `:coffeescript` tags

Syntax highlighting works within :javascript tags, but not within :coffeescript tags. Check it out:

screen shot 2018-01-10 at 11 30 54 am

Highlighting does work in .coffee files, but not within a :coffeescript tag in a .haml file.

Great work, by the way :) Don't know what I'd do without this extension!

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.