Skip to content
Open
Changes from all commits
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
3 changes: 3 additions & 0 deletions plugins/settings/known_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ def value_completions(self, view, prefix, point):
# the value typed so far, which may differ from prefix for floats
typed_region = sublime.Region(value_region.begin(), point)
typed = view.substr(typed_region).lstrip()
json_completions = []
for c in completions:
value = c.completion
# unroll dicts
Expand Down Expand Up @@ -584,6 +585,8 @@ def value_completions(self, view, prefix, point):
# escape snippet markers
value_str = value_str.replace("$", "\\$")
c.completion = value_str
json_completions.append(c)
completions = json_completions

# disable word completion to prevent stupid suggestions
return completions
Expand Down