microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.6k stars 28.66k forks source link

[html] `html.autoCreateQuotes` is not instant #151319

Open jf908 opened 2 years ago

jf908 commented 2 years ago

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

  1. Open a HTML document
  2. Inside of a tag where the attributes are located, type id=test quickly

I would expect id="test" to be typed but if it is typed too quickly then only id=test is typed.

It's quite frustrating to pause after every equals sign as most auto insertions such as quotes and parentheses are always inserted at any typing speed.

aeschli commented 2 years ago

There's currently a 100ms wait to see if more character are typed and the quick completion request should be cancelled.

jf908 commented 2 years ago

I find it quick odd that this is the default behaviour when all of the other features that automatically insert symbols do not have a wait to them like auto closing tags, snippets and emmet. Edit: Auto closing tags does have a delay to it but it's not as interruptive.

Even though I love the idea of this feature, I personally found that it slowed down my typing more than it sped it up.

Is there a situation where you would not want quotes to be inserted?

thetanz-geoff commented 1 year ago

Agree with @jf908 that this behaviour is extremely frustrating for fast typists. Worth noting that fixing #140698 might solve both issues (if quotes have already been added by typing, don't add them again).

xPaw commented 6 months ago

There's currently a 100ms wait to see if more character are typed and the quick completion request should be cancelled.

If this is intended, then why does it still insert an ending quote which moves the cursor past the quote? I keep getting class=""my-cursor-is-here.