Skip to content

Commit a64af32

Browse files
committed
Fix completion selector
1 parent 3f20db4 commit a64af32

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

PIP Requirements.sublime-completions

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"scope": "text.pip-requirements - meta.expect-option-or-package - entity.name - variable.parameter",
2+
"scope": "source.pip-requirements - meta.expect-option-or-package - entity.name - variable.parameter",
33
"completions": [
44
{
55
"trigger": "and",

completions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def on_query_completions(
2828
locations: list[Point]
2929
):
3030
location = locations[0]
31-
selector = "text.pip-requirements & (meta.expect-option-or-package | variable.parameter)"
31+
selector = "source.pip-requirements & (meta.expect-option-or-package | variable.parameter)"
3232
if any(view.match_selector(pt, selector) for pt in (location, location - 1)):
3333
return self.pip_arguments
3434

0 commit comments

Comments
 (0)