-
-
Notifications
You must be signed in to change notification settings - Fork 459
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
Multi root (vscode next) #252
Conversation
vscode dep bump
Simply remove them It removes 1 "feature", a warning message which is in the output panel anyway. Where it does count, multi-root is already taken into account.
Nice! Is there a way to enable prettier only per folder? I.e. a folder setting |
package.json
Outdated
@@ -19,7 +19,7 @@ | |||
"url": "https://github.com/prettier/prettier-vscode/issues" | |||
}, | |||
"engines": { | |||
"vscode": "^1.15.0" | |||
"vscode": "^1.17.0" | |||
}, | |||
"categories": [ | |||
"Formatters" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going to add multi-root ready
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eventually yes.
Just wanted to really test it first.
@felixfbecker This is not possible. Either you register a formatter for the entire instance or you don't. |
Sorry I don't understand. Why is this not possible (but .prettierignore is)? |
I may have misunderstood you question. To me you wanted to be able to use any other formatter (at least the default one) on other folder. ie enable the extension per folder. This may be a feature from vscode. If it's just a toggle, on/off, this may be possible, but I would be against it. #199 would already do it. Once implemented. |
If you're looking to turn off formatOnSave for a given workspace folder, I believe you can just put |
I think #199 would solve it. "Format document" needs to use a different formatter depending on the workspace folder. |
@felixfbecker afaict a formatter extension must register itself (and therefore override default formatters shipped w/ vscode) before we have specific information about the workspaces in a multi-root setting. The microsoft/vscode#15611 might be the appropriate solution |
Ready to review! I've nothing more to test or add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me! Couldn't test functionally because I forgot my charger...
Adapt settings for resource usage. ie settings which are relevant to a file.
remove rootpath usage.
Will need to make test on an insider version. (Welcome testers !)
fix #243
Edit: Made some tests on insider with 2 folders. Was working 😄