Show warning if user has set `files.trimTrailingWhitespace` globally
See original GitHub issueIf the user defined files.trimTrailingWhitespace
as true
in the VSCode settings, we cannot prevent trimming the whitespaces if the user set trim_trailing_whitespace = false
in his .editorconfig
file. That’s why we should show a warning message if the global setting overrides the .editorconfig
setting.
Possible candidates
The currently opened folder contains workspace settings that may override EditorConfig settings.
Workspace settings may be overriding EditorConfig settings. It is recommended that you remove the workspace settings in favor of EditorConfig.
The currently opened file contains workspace settings that may override EditorConfig settings.
The files.trimTrailingWhitespace workspace setting may be overriding the EditorConfig trim_trailing_whitespace setting for this file. It is recommended that you remove workspace settings that might override EditorConfig settings.
I think we should keep the message small and clear. The last one is too long and won’t fit into the popup box I’m afraid. Although we can make it a little shorter and use something like this
The files.trimTrailingWhitespace workspace setting is overriding the EditorConfig trim_trailing_whitespace setting for this file.
It’s up to the user to decide what they want to do in that case.
Issue Analytics
- State:
- Created 8 years ago
- Comments:44 (12 by maintainers)
Top GitHub Comments
Is there a way to deactivate this warning? I like to see it once, but it gets annoying pretty quickly as it comes up on every succeeding save.
Thanks! 👏