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

Restrict editor config to Haskell file, to avoid affecting Makefiles or other tab-based formats #442

Merged
merged 6 commits into from
Oct 11, 2020

Conversation

tittoassini
Copy link
Contributor

indent_style = space
makes it impossible to write Makefiles

@ndmitchell
Copy link
Collaborator

Thanks for the PR, seems like you had some problem editing Makefiles?

Doesn't this only impact files in the haskell-language-server directory? And we don't have any Makefiles that I can see. Did I miss some?

Plus, why restrict to hs/lhs and also add an explicit entry for Makefile? Shouldn't that just be left blank to leave editor defaults to trigger?

@tittoassini
Copy link
Contributor Author

tittoassini commented Sep 30, 2020 via email

@ndmitchell
Copy link
Collaborator

My understanding is that this .editorconfig should only apply to directories beneath it. So if you have a git checkout of haskell-language-server, only that directory should be impacted. Which editor are you using? Are the Makefile's under that directory for some reason?

@Ailrun
Copy link
Member

Ailrun commented Sep 30, 2020

That's my understanding too. Maybe there are some editor plugins using .editorconfig in a specific directory for every files outside of the dir (even though it sounds a bit weird), but I think those are issues of the plugins..

@tittoassini
Copy link
Contributor Author

tittoassini commented Sep 30, 2020 via email

@ndmitchell
Copy link
Collaborator

@tittoassini that makes sense now. Agreed that restricting the format changes to .hs/.lhs makes a lot of sense.

I wonder if the Makefile you have is useful enough that others might want to use it? Or is it specific to your approaches in a way that wouldn't be generally useful?

@tittoassini
Copy link
Contributor Author

tittoassini commented Sep 30, 2020 via email

.editorconfig Outdated Show resolved Hide resolved
.editorconfig Show resolved Hide resolved
.editorconfig Outdated Show resolved Hide resolved
tittoassini and others added 2 commits October 8, 2020 17:58
Co-authored-by: Javier Neira  <atreyu.bbb@gmail.com>
Co-authored-by: Javier Neira  <atreyu.bbb@gmail.com>
.editorconfig Outdated Show resolved Hide resolved
.editorconfig Outdated Show resolved Hide resolved
.editorconfig Outdated Show resolved Hide resolved
.editorconfig Show resolved Hide resolved
tittoassini and others added 3 commits October 11, 2020 20:25
Co-authored-by: Javier Neira  <atreyu.bbb@gmail.com>
Co-authored-by: Javier Neira  <atreyu.bbb@gmail.com>
@ndmitchell ndmitchell merged commit 93fcf93 into haskell:master Oct 11, 2020
@ndmitchell
Copy link
Collaborator

Thanks!

Copy link
Member

@jneira jneira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@tittoassini
Copy link
Contributor Author

thank you both :-)

@tittoassini tittoassini deleted the editorConfig branch October 11, 2020 19:54
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

Successfully merging this pull request may close these issues.

4 participants