Skip to content

Issue: Flicker/Blink of Front Matter YAML area  #804

Closed

Description

@bneil

Describe the bug
When typing, in hugo, the frontmatter yaml area blinks after each keypress

To Reproduce
Steps to reproduce the behavior:

  1. Go to a markdown file in front matter, thats prefilled
  2. Start typing
  3. See flicker

Expected behavior
Either a setting to turn off if this is expected, or no flicker at all when editing documents

Screenshots

Recording.2024-05-03.114153.mp4

Desktop (please complete the following information):

  • OS: Windows 11 (but also seen on debian and osx)

Smartphone (please complete the following information):
n/a

Additional context
Again, not sure if this is a bug but its wobbles my 👀 . I do not see the front matter yaml area even highlighted when the 'Front Matter' extension is disabled. Which lead me to think it was something with the 'Front Matter' extension. But happy to help track it down. Oh, I also have a vim plugin active in that video, but this also happens without vim. Just after each keypress that area flickers.

This blinking doesn't occur when just navigating the markdown file in hugo.

Activity

  1. added
    bugSomething isn't working
    on May 3, 2024
  2. davidsneighbour commented on May 4, 2024

    @davidsneighbour
    Contributor

    A note to add: The blinking is an error message about YAML parse errors in OTHER content files. Frontmatter seems to be scanning content in the background, and the error is thrown into whatever editor window is active. Once all is scanned the error disappears. Then after some time it comes back (rescanning other content files again).

    It's happening in the latest Beta version on Ubuntu, too.

  3. moved this to In progress in v10.13.0on May 6, 2024
  4. added a commit that references this issue on May 6, 2024
  5. estruyf commented on May 6, 2024

    @estruyf
    Owner

    @bneil @davidsneighbour implemented a slight change in the logic, which should have solved the blinking. It had to do with the range calculation and setting the decoration for the front matter zone in the document. Feel free to give it a try in the latest beta version and let me know if the experience is better.

  6. bneil commented on May 6, 2024

    @bneil
    Author

    @estruyf When using the beta version, I am no longer seeing the blinking while typing 🎸. However, and this could be unrelated, the files I usually see on the front matter dashboard are missing.

  7. estruyf commented on May 7, 2024

    @estruyf
    Owner

    @bneil, that's great news. The other issue is not related to this one but is probably due to another change in the beta version. #802

    In which environment did you test it? Can you verify if it is the same on Windows and macOS?

  8. estruyf commented on May 7, 2024

    @estruyf
    Owner

    @bneil found an issue in the Windows paths, I'm not sure if it is related to the change or an update on VSCode, but when the Windows paths get parsed, the disk letter is returned lowercase, which is why the folder comparison did not work.

    I implemented a fix, and it is rolling out. I hope this fixes it on your end as well.

  9. moved this from In progress to In BETA in v10.13.0on May 7, 2024
  10. added
    In BETAThe current task is available for testing in the BETA version.
    and removed
    In progressThis is actively being worked on
    on May 7, 2024
  11. bneil commented on May 7, 2024

    @bneil
    Author

    wow, that was it. working like a charm. thanks again!

  12. moved this from In BETA to Released in v10.13.0on Jun 12, 2024
  13. added
    ReleasedThe task has been released
    and removed
    In BETAThe current task is available for testing in the BETA version.
    on Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ReleasedThe task has been releasedbugSomething isn't workingv10.2.0Project: v10.2.0

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions