-
Notifications
You must be signed in to change notification settings - Fork 116
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
Spuriously changes line endings in VS Code Insiders v1.3.0 #57
Comments
Sounds like either your |
My adivce is to do the following in your project:
|
Related, #46 |
At least you have confirmed (by way of #46 and #26) what was a mystery: the combination of changes to this extension and to VS Code (insiders for now) "makes a file dirty by simply opening it". IMO, an editor should not change a file until I change that file. That VS Code (or this extension or any tool) should "nanny" me by "fixing my file" w/o permission ... is revolting. To whom do I complain? Is it within your power to offer an option/setting that disables this "feature" ... that makes no changes until I do? I don't know why you'd think that I have the wrong As for changing the git config to I'm really torn. I like this editorconfig extension. But I can't afford the git chaos and I work on a team (what a concept) that strives to standardize on many things including line endings and git behavior so I can't go my own way on those settings. OTOH, team members work on Macs and PCs using a combination of editors. I can't change that and wouldn't want to. I'll have to do without your extension until this is resolved. I wonder how many others will be obliged to do the same when the insiders edition becomes official. You may want to get in front of that! |
@wardbell I made no assumptions that your Now, I know, perhaps better than anyone the stresses of working on teams with mixed environments, both open source and private and these issues and arguments come up time and time again. It's the reason I joined the EditorConfig Team, so all the empathy in the world for your situation. Unlike your project, my recent team members were unwilling to introduce a Fortunately, for you, Git does have a way to edit this setting and it's how I instructed above. I've been forced to use it myself and it's quite painless to do so, as long as you have an EditorConfig plugin in your editor keeping your line endings in sync w/ the project's That said, I could or you could add a feature to this plugin that reads, perhaps, an additional setting unsupported by EditorConfig, but exclusive to this vscode plugin. I'm not sure what that setting would be named, but it could give you what you want in terms of disabling the feature. I'm open to having a discussion about that. If we still don't come to an agreement, you can always fork the project. You have many options here. Lastly, I want you to consider the possibility that your issue is actually not with this plugin at all, per se, but with vscode's |
There is another option if you want to turn off the |
Yes. I understand. Sorry about that. We will all have to take it up with the VS Code team. Maybe reference this thread? I just learned that the same behavior appears in regular VS Code without the warning. Meanwhile, you have this thread to reference when others stumble into it. Thanks for a great product, BTW. I regret that I neglected to mention that earlier. Being an OSS author myself I realize how thankless it can seem. |
Thanks. |
FWIW, the |
Also, @wardbell, I have to say that I agree w/ the vscode implementation of ensuring a file is not saved with mixed line endings. What you are proposing would allow people to save files with mixed line endings and I think that makes no sense. You can always review a GitHub pull request with |
Oh I agree with you about saving with ONE kind of line ending. That is NOT my issue. My issue is that VS Code should make no changes to a file until I make at least one change myself. No matter how bad the file ... leave it alone until I do something. THAT ... and that alone ... is my entire complaint. |
I think you and I can both agree on that argument. |
Hi @jedmao It seems to me that it's an extension problem, because I have no problem now that I removed the extension. |
@Bigous did you read this thread? It's definitely the extension, because it's entirely intentional. |
Sorry. My bad. |
I'm using the insiders edition.
Editorconfig changes the line ending of every file I open. Driving me crazy with git.
How do I know? Does it when editorconfig extension is installed. Doesn't when I remove it.
No such problem in regular VS Code.
The text was updated successfully, but these errors were encountered: