Skip to content

Search and replace broken if ReScript plugin + format on save are active #606

@cknitt

Description

@cknitt

In our projects, I often observe the following behavior:

When

  • the ReScript plugin is active
  • I have format on save activated in my settings ("editor.formatOnSave": true)
  • and I perform a search and replace across files in the search tab (SHIFT-CMD-F)

then the replacement is only performed in a subset of the matching files (e.g. 3 out of 14).

I do not know if a certain project size is required to reproduce this. When I just tested, the search & replace did work fine the very first time after opening VS Code, but after resetting the changed files and repeating the search & replace operation, the problem was observed.

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