tw-in-js / vscode-twind-intellisense

Intelligent Twind tooling for VS Code
MIT License
60 stars 10 forks source link

Support for plain HTML? #1

Open srid opened 3 years ago

srid commented 3 years ago

For example to support auto completion within brackets:

 <a class="border(2 black opacity-50 dashed)">hey</a
sastan commented 3 years ago

Unsure what you mean:

  1. auto completion within brackets? – that should already work
  2. support for plain HTML? – working on that one
srid commented 3 years ago

I mainly meant 2.

-------- Original Message -------- On Mar. 26, 2021, 1:15 p.m., Sascha Tandel wrote:

Unsure what you mean:

  • auto completion within brackets? – that should already work
  • support for plain HTML? – working on that one

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

sastan commented 3 years ago

It's on the list.

danielweck commented 3 years ago

Note that plain class props / JSX attributes are supported in .tsx and .jsx files, but indeed not in HTML documents. Related issue: https://github.com/tw-in-js/typescript-plugin/issues/11#issuecomment-803987980

mtsknn commented 3 years ago

Somewhat related (I can open a separate issue if not related enough):

The extension doesn't provide suggestions when using the htm package. E.g.:

const { html } = require('htm/preact')

const Component = () => html`
  <div class="flex" />
`

I tried setting "editor.quickSuggestions": { "strings": true }, but it didn't have any effect.

vsnthdev commented 3 years ago

Unsure what you mean:

  1. auto completion within brackets? – that should already work
  2. support for plain HTML? – working on that one

Eagerly waiting for plain HTML support...

stefankyriacou123 commented 11 months ago

Hi, is this still being worked on? Is there anything I can do to help?