File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 7
7
import weakref
8
8
9
9
import sublime
10
- from sublime_lib import encodings
10
+ from sublime_lib import encodings , ResourcePath
11
11
12
12
13
13
from ..lib .weakmethod import WeakMethodProxy
@@ -743,10 +743,9 @@ def _theme_completions(default):
743
743
"""
744
744
hidden = get_setting ('settings.exclude_theme_patterns' ) or []
745
745
completions = set ()
746
- for theme in sublime .find_resources ("*.sublime-theme" ):
747
- theme = os .path .basename (theme )
748
- if not any (hide in theme for hide in hidden ):
746
+ for theme_path in ResourcePath .glob_resources ("*.sublime-theme" ):
747
+ if not any (hide in theme_path .name for hide in hidden ):
749
748
completions .add (format_completion_item (
750
- value = theme , default = default , description = "theme"
749
+ value = theme_path . name , default = default , description = "theme"
751
750
))
752
751
return completions
You can’t perform that action at this time.
0 commit comments