-
Notifications
You must be signed in to change notification settings - Fork 30
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
SaveAll doesn't apply editorconfig settings to all files being saved #46
Comments
No comments? |
I can confirm that the problem exists, but I am not sure why yet. The event I need to dig into this a bit deeper. |
You mean "...for every modified file". It could be (didn't look really deeply) that you are using Notepad++ commands (e.g. |
Because of this (and other instances of plugins and scripts acting on the active buffer instead of the notification's BufferID for But following that sequence in the Manual is highly recommended for any plugin that implements a callback for |
Thanks for the reference. This indeed is something that needs to be fixed. I didn't look into it yet, other then reading the comments here. |
When executing a "Save All" command in Notepad++, version 0.4.0.0 of the editorconfig plugin doesn't apply its settings to all of the files being saved. Specifically, it will only act upon the currently active file tab if that file needs saving. All of the other (currently inactive) filetabs to be saved will not receive the settings.
It can be demo'd with the attached fileset. Three text files all have trailing whitespace. The editorconfig file indicates that this should be eliminated when saving. Extract all files to a folder and then open the 3 .txt files into Notepad++ which has editorconfig plugin installed. Make a slight change to the first character on line 1 of each of the 3 filetabs, without saving. Make sure test1.txt is the currently active file and invoke File > Save All. Observe that trailing whitespace is eliminated from test1.txt (the active filetab) but although test2.txt and test3.txt are now saved, their trailing whitespace has not been removed.
editorconfig_test.zip
The text was updated successfully, but these errors were encountered: