File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 26
26
// Each theme containing one of the list's strings is hidden.
27
27
"settings.exclude_theme_patterns" : [],
28
28
29
+ // Whether to show the edit settings pencil icon. Close & reopen the
30
+ // settings file for this to take effect.
31
+ "settings.show_quick_edit_icon" : true ,
32
+
29
33
// Whether or not to keep the scope suffix in the suggested test scopes
30
34
// i.e. if the base scope is text.html.markdown
31
35
// then suggest meta.example.markdown (true) vs meta.example (false).
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ def __init__(self, view):
145
145
logger .error ("Not a Sublime Text Settings or Project file: %r" , filepath )
146
146
147
147
self .phantom_set = sublime .PhantomSet (self .view , "sublime-settings-edit" )
148
- if self ._is_base_settings_view ():
148
+ if self ._is_base_settings_view () and get_setting ( "settings.show_quick_edit_icon" ) :
149
149
self .build_phantoms ()
150
150
151
151
def __del__ (self ):
@@ -156,7 +156,7 @@ def __del__(self):
156
156
def on_modified_async (self ):
157
157
"""Sublime Text modified event handler to update linting."""
158
158
self .do_linting ()
159
- if self ._is_base_settings_view ():
159
+ if self ._is_base_settings_view () and get_setting ( "settings.show_quick_edit_icon" ) :
160
160
# This may only occur for unpacked packages
161
161
self .build_phantoms ()
162
162
You can’t perform that action at this time.
0 commit comments