Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions plugins_/settings/known_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,12 +708,18 @@ def _color_scheme_completions(default):
"""
hidden = get_setting('settings.exclude_color_scheme_patterns') or []
completions = set()
for scheme_path in sublime.find_resources("*.sublime-color-scheme"):
if not any(hide in scheme_path for hide in hidden):
_, package, *_, name = scheme_path.split("/")
completions.add(format_completion_item(
value=name, is_default=name == default, description=package))

for scheme_path in sublime.find_resources("*.tmTheme"):
if not any(hide in scheme_path for hide in hidden):
_, package, *_, file_name = scheme_path.split("/")
_, package, *_, name = scheme_path.split("/")
completions.add(format_completion_item(
value=scheme_path, is_default=scheme_path == default,
label=file_name, description=package))
label=name, description=package))
Copy link
Member

@FichteFoll FichteFoll Sep 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that I see this, tmTheme files need to be specified by path, not by name. I'll fix this. Nvm, the value is still correct.

return completions

@staticmethod
Expand Down