-
Notifications
You must be signed in to change notification settings - Fork 78
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
[VSCode] Metals is generating files on click the extension view, even if I'm not in a Scala project #1439
Comments
Thanks for reporting! This is the default behaviour of VS Code currently. When the tab is opened, VS Code will start the extension responsible for that tab :/ We don't define it ourselves. There is even a note about the change https://code.visualstudio.com/api/references/activation-events#onView |
We might be able not work around it, but not sure currently how to do it. |
This will get automatically resolved if we add single files support scalameta/metals#5531. |
Have you considered using a temporary folder for logging instead of a relative path? |
There could be 2 solutions regarding the issue if #1439 (comment) didn't work, my 2 cents :)
|
Could a solution be to check if the current folder contains files like |
Probably something like that, basically duplicating the activation triggers, which we defined :/ |
The problem was so severe that if the file he generated was deleted, it would be immediately regenerated, which was devastating |
Describe the bug
I opened VSCode in an Angular application and accidentally clicked Metals tab. There are two files that got generated and they shouldn't because I'm not in a Scala project and I din't click the "Start Metals" button.
Expected behavior
No files should be generated
Operating system
Windows
Editor/Extension
VS Code
Version of Metals
v1.1.0
Extra context or search terms
The text was updated successfully, but these errors were encountered: