-
Notifications
You must be signed in to change notification settings - Fork 349
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
editor: initialize .vscode
settings directory
#4294
base: main
Are you sure you want to change the base?
Conversation
These are basically always useful in vscode; turn them on. Note that there is an editorconfig plugin for vscode and we do have a `.editorconfig` file but these options aren't set due to an old intellj-rust bug. Signed-off-by: Austin Seipp <[email protected]>
This was split off from my Buck branch, but I figure it's a small and useful addition. |
I still don't particularly like that, we probably should get the |
At the end of the day, I think if people are using other editors, we should encourage them submit patches to make the repo behave consistently too, rather than never letting anyone check anything in that improves a single editor. What's the issue? I suspect these settings are going to be fairly low maintenance, tbh. The amount of editors among common developers is probably what, 5 at max? It's just not worth worrying over. It's also relatively low risk since it isn't really impacting users and we don't need to worry about things like that. With VSCode at least, we would probably want to make sure that the user is going to be recommended the Plus, editorconfig is, in practice, extremely limited. I like it for that reason, but ultimately, I think we might want to set other configuration options for an editor if we want it to behave better — for example to recognize specific filenames as specific languages, or set specific options for things like rust analyzer or clippy (which I do have in my buck branch too, but again I think that might happen eventually anyway.) |
I think they already are, without needing some special configuration for their editor in the repo.
Or we could take the approach of just providing documentation which plugins you'd need for each editor. And the actual users can chime in with suggestions and improvements, instead of just supporting a single one.
And that's a really good thing! Because if we start with VsCode/Codium then people will start to ask questions like why we don't provide it for Helix, Zed or the
Yes, I just looked at the Buck2 PR where you set option to recognize Starlark files which only works for VsCode. OTOH, I see no issue with introducing a |
My problem with this is that it makes it difficult for me to have my own Workspace-level VS Code settings for the jj repo. There's always the option of having |
I agree that this would be annoying for that reason, and that a file of recommended settings is better than tracking the real thing. (There’s also some vague security worries, as with |
If we did want to have special treatment of VS Code, we could use https://code.visualstudio.com/docs/editor/extension-marketplace#_workspace-recommended-extensions to recommend the EditorConfig extension (assuming it works well) together with rust-analyzer. There could also be a |
Austin already suggested this, but that is not even better as it will mislead people which expect to work it out of the box. Those will then want to provide real options anyway. I think per editor docs will be better, but that is my opinion. |
People have brought this up before that we might want some vscode settings, so let's try adding a few basic ones?
These options are basically always useful in vscode; turn them on. Note that there is an editorconfig plugin for vscode and we do have a
.editorconfig
file but these options aren't set due to an old intellj-rust bug. Maybe we could get rid of it?