T3sT3ro · GitHub

Describe the bug
Typing in the fields like "Description" in the blog's metadata results in instant updates to the file's content. At the same time the field is not very responsive and sometimes "eats" characters when typing fast.

To Reproduce
Steps to reproduce the behavior:

  1. Create blog post, assure the schema and metadata allow for inputting in the description field in the sidebar's "Metadata" section
  2. Type very fast (e.g. move your finger very quickly over "qwertyuiop")
  3. See that some characters were eaten during typing

Expected behavior
The text should be input as user typed.

Possible solution
Add debounce, for example for 300ms (or longer), to the text inputs after which you will update the text file. It is possible that longer markdown files can produce even more lag (updates to frontmatter in them can be time consuming), so maybe you should stress test it against some longer blog posts.

Screenshots

input-error.mp4

Desktop (please complete the following information):

  • OS: Ubuntu 22.04
  • Browser VSCode 1.85.1
  • Version v9.5.7489259

Read the original on github.com ↗