Skip to content

Improve Built-in Format Function: Replace fs::write with Overwrite Mode to Enhance LSP Performance #31

Description

@hapeeeeee

The current implementation of the built-in format functionality relies on fs::write, which negatively impacts LSP performance.
Instead of writing the entire formatted file through the filesystem, it should be modified to support an internal overwrite mode, directly replacing the content in memory.
This change would reduce unnecessary I/O operations and significantly improve overall LSP responsiveness during formatting.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions