sindresorhus / editorconfig-sublime

Sublime Text plugin for EditorConfig - Helps developers maintain consistent coding styles between different editors
MIT License
1.77k stars 108 forks source link

[Feature request] Disable EditorConfig settings in console output #62

Closed Kristinita closed 7 years ago

Kristinita commented 7 years ago

1. Summary

I don't want to see EditorConfig settings in my console output. I don't need it.

2. Expected behavior

No EditorConfig settings in my console output.

3. Actual behavior

Example of my console output.

Click here to see full output.
```json key evt: control+p command: show_overlay {"overlay": "goto", "show_files": true} chr evt: o (0x6f) chr evt: i (0x69) chr evt: p (0x70) key evt: backspace command: hungry_backspace key evt: backspace command: hungry_backspace chr evt: p (0x70) chr evt: e (0x65) chr evt: n (0x6e) EditorConfig D:\Поиск Кристиниты\opensearch.xml {'charset': 'utf-8', 'end_of_line': 'lf', 'indent_size': '4', 'indent_style': 'tab', 'insert_final_newline': 'true', 'tab_width': '4', 'trim_trailing_whitespace': 'true'} SublimeLinter: xmllint activated: C:\strawberry\c\bin\xmllint.exe SublimeLinter: sublimesyntax activated: FuzzyFilePath cached 791 files in D:/Поиск Кристиниты key evt: shift+control+p command: show_overlay {"overlay": "command_palette"} Init webFont _download_font_info chr evt: e (0x65) chr evt: x (0x78) chr evt: a (0x61) chr evt: l (0x6c) chr evt: t (0x74) command: exalt_format_document command: drag_select {"event": {"button": 1, "x": 267.5, "y": 106.5}} command: word_highlight_click {"event": {"button": 1, "x": 267.5, "y": 106.5}} command: drag_select {"event": {"button": 1, "x": 81.5, "y": 62.5}} command: word_highlight_click {"event": {"button": 1, "x": 81.5, "y": 62.5}} command: drag_select {"event": {"button": 1, "x": 297.5, "y": 452.5}} command: word_highlight_click {"event": {"button": 1, "x": 297.5, "y": 455.5}} 15:25:44 INFO requests.packages.urllib3.connectionpool:805 _new_conn() Starting new HTTPS connection (1): codestats.net key evt: control+z command: undo 15:25:46 DEBUG requests.packages.urllib3.connectionpool:401 _make_request() "POST /api/my/pulses/ HTTP/1.1" 201 23 key evt: shift+control+z command: redo key evt: control+z command: undo 15:25:56 INFO requests.packages.urllib3.connectionpool:805 _new_conn() Starting new HTTPS connection (1): codestats.net 15:25:56 DEBUG requests.packages.urllib3.connectionpool:401 _make_request() "POST /api/my/pulses/ HTTP/1.1" 201 23 command: drag_select {"event": {"button": 1, "x": 613.5, "y": 479.5}} command: word_highlight_click {"event": {"button": 1, "x": 613.5, "y": 479.5}} key evt: control+p command: show_overlay {"overlay": "goto", "show_files": true} chr evt: S (0x53) chr evt: a (0x61) chr evt: s (0x73) chr evt: h (0x68) chr evt: t (0x74) key evt: backspace command: hungry_backspace chr evt: a (0x61) no such context .repository in Packages/stposh/Support/PowerShell.tmLanguage no such context .repository in Packages/stposh/Support/PowerShell.tmLanguage no such context .repository in Packages/stposh/Support/PowerShell.tmLanguage no such context .repository in Packages/stposh/Support/PowerShell.tmLanguage chr evt: S (0x53) key evt: up command: move {"by": "lines", "forward": false} key evt: up command: move {"by": "lines", "forward": false} key evt: up command: move {"by": "lines", "forward": false} EditorConfig D:\Sublime Text 3\Data\Packages\SashaSublime\SashaSublime.tmTheme {'charset': 'utf-8', 'end_of_line': 'lf', 'indent_size': '4', 'indent_style': 'tab', 'insert_final_newline': 'true', 'tab_width': '4', 'trim_trailing_whitespace': 'true'} FuzzyFilePath cached 277 files in D:/Sublime Text 3/Data/Packages/SashaSublime key evt: shift+control+p command: show_overlay {"overlay": "command_palette"} command: drag_select {"event": {"button": 1, "x": 618.5, "y": 480.5}} command: word_highlight_click {"event": {"button": 1, "x": 618.5, "y": 478.5}} key evt: alt+b command: bang_search_input {} chr evt: p (0x70) chr evt: c (0x63) ```

I don't want to see in my console: ```json EditorConfig D:\Поиск Кристиниты\opensearch.xml {'charset': 'utf-8', 'end_of_line': 'lf', 'indent_size': '4', 'indent_style': 'tab', 'insert_final_newline': 'true', 'tab_width': '4', 'trim_trailing_whitespace': 'true'} ``` ### 4. Steps to reproduce The problem is reproduced for me in a version of Sublime Text without plugins and user settings. I install and set EditorConfig → I restart Sublime Text → periodically I get in my console messages with my EditorConfig settings. ### 5. Environment **Operating system and version:** Windows 10 Enterprise LTSB 64-bit EN **Sublime Text:** Build 3126 Thanks.
coagmano commented 7 years ago

Yes please, this is super annoying. Looks like these are the offending lines

Guessing there should be a settings option for this, but the plugin doesn't currently have a setting file. Considering logging by default was added in #31, it makes sense to add a setting to disable the behaviour