Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS Code global search and replace inhibited #1118

Open
KeithGrant opened this issue Aug 20, 2022 · 4 comments
Open

VS Code global search and replace inhibited #1118

KeithGrant opened this issue Aug 20, 2022 · 4 comments

Comments

@KeithGrant
Copy link

Metals (v 1.19.0) seems to prevent a multiple file search and replace operation in VS Code from saving the changed files. Disabling the metals extension allows the global search and replace to work. Changes to files in the editor are saved those not in a tab are not saved when the metals extension is enabled however all files are saved correctly when metals is disabled.

@tgodzik
Copy link
Contributor

tgodzik commented Aug 22, 2022

Thanks for reporting! I haven't been able to reproduce it. All files are correctly saved, both those in the active tabs and the ones that are not open.

Is it possible it's caused by a specific settings conflict? I don't see any reason why Metals would block this from happening, but don't attach any hooks to on save. And especially, Metals doesn't know about any changes to files not currently opened.

@KeithGrant
Copy link
Author

KeithGrant commented Aug 22, 2022 via email

@mlhales
Copy link

mlhales commented Jan 18, 2023

I am seeing this problem too, currently. Using v1.21.0 and up to date vscode.

I was wondering if it was maybe scalafmt running after the save, but having the old source cached or something like that?

@KeithGrant
Copy link
Author

KeithGrant commented Jan 18, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants