Giter VIP home page Giter VIP logo

Comments (8)

ntwb avatar ntwb commented on May 25, 2024 3

I've done some digging around and discovered the "Completion API"

So rather than snippets we can use the Completion API to suggest completions as a user begins typing a stylelint stylelint disable comment the extension would suggest the remaining code, it is similar functionality but we should be able to better control when these are initialized

https://code.visualstudio.com/api/references/vscode-api#languages.registerCompletionItemProvider

from vscode-stylelint.

jeddy3 avatar jeddy3 commented on May 25, 2024 2

In esLint, these deactivation options for specific lines only appear where eslint encounters a problem or alert, that way you click on the line, then on the lamp that appears and choose what you want to do.

This sounds like the best user experience to me.

Shall we remove the snippets in favour of this approach, or at least disable them by default behind an option.

from vscode-stylelint.

Hai-San avatar Hai-San commented on May 25, 2024 2

@jt3k Until the solution is applied I am using version 0.80.0.

from vscode-stylelint.

ntwb avatar ntwb commented on May 25, 2024 1

Good point, sorry for the delay in replying...

I think changing the queue to trigger these would be the way to go...

Changing them from starting with /* to something else.

Either that, or disabling by default and opting in as it's not the greatest of options to be on by default.

Anyone else have thoughts on what other snippets extensions use as a prefix or alternate methods used that work well, or at least better than the above?

from vscode-stylelint.

Hai-San avatar Hai-San commented on May 25, 2024

Thanks for the reply @ntwb

You have to see what most developers think, but for me an option to disable and activate would solve my problem.

I don't know how the whole system behind the snippets works, but there's no way to create a prefix and only show the suggestions if it is written? Something like "stlint". As it is a feature that should be little used, having to write a slightly larger word for it to appear would not be a problem.

In esLint, these deactivation options for specific lines only appear where eslint encounters a problem or alert, that way you click on the line, then on the lamp that appears and choose what you want to do.

from vscode-stylelint.

skaltenegger avatar skaltenegger commented on May 25, 2024

@jeddy3 @ntwb any update on when this feature will be implemented? I need to temporarily disable the VScode extension because it does not let me use the dn emmet shortcut anymore for display: none and instead shows /* stylelint-disable-next-line rule */ which is quite annoying.

image

Thanks!

from vscode-stylelint.

skaltenegger avatar skaltenegger commented on May 25, 2024

Just pining to see if you have any updates @jeddy3 @ntwb? 👋

Would be awesome to hav this fixed at some point!

Thanks so much!!

from vscode-stylelint.

jt3k avatar jt3k commented on May 25, 2024

BUMP UP! what about fix ? is quite annoying!

from vscode-stylelint.

Related Issues (20)

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.