Skip to content

🐞 Noticeable delay occurs when changing Settings  #1247

@austincondiff

Description

@austincondiff

Description

Changing any setting causes a slight delay before the UI is updated to reflect the change. This is problematic when interacting with a stepper control when it is common to click several times consecutively or a text field when it is common to type characters consecutively. The UI doesn't have time to respond resulting in a sluggish UI.

To Reproduce

  1. Open Settings
  2. Navigate to the Text Editing page
  3. In the Font Size field, click the up arrow to increase five times in a row
  4. Notice that the UI does not update immediately resulting in it feeling sluggish to interact with

Expected Behavior

The UI should respond to user action immediately.

Version Information

CodeEdit: 0.0.3-dev (32)

Additional Context

This might be because it is writing to settings.json in our Application Support folder. I think it waits until it has been updated (not sure, just a theory). I think we should be handling this more optimistically and not be so dependent on writing to the file.

Screenshots

Screen.Recording.2023-04-27.at.2.35.06.PM.mov

Related issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    🏁 Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions