Skip to content

Commit 12b6ae8

Browse files
committed
Unbreak generic language completions
- Bump to 0.0.24
1 parent c84362d commit 12b6ae8

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

pyqt_code_editor/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
from ._settings import settings
44

5-
__version__ = '0.0.23'
5+
__version__ = '0.0.24'

pyqt_code_editor/worker/languages/generic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
from ..providers import symbol, codestral
22

3-
def complete(code, cursor_pos, path, multiline, full):
3+
def complete(code, cursor_pos, path, multiline, full, env_path):
44
if full or multiline:
55
completions = codestral.codestral_complete(
6-
code, cursor_pos, path=path, multiline=multiline)
6+
code, cursor_pos, multiline=multiline)
77
else:
88
completions = []
99
if not multiline:
10-
completions += symbol.symbol_complete(code, cursor_pos, path=path)
10+
completions += symbol.symbol_complete(code, cursor_pos)
1111
return completions
1212

1313
calltip = None

pyqt_code_editor/worker/languages/python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
def complete(code, cursor_pos, path, multiline, full, env_path):
55
if full or multiline:
66
codestral_completions = codestral.codestral_complete(
7-
code, cursor_pos, path=path, multiline=multiline)
7+
code, cursor_pos, multiline=multiline)
88
else:
99
codestral_completions = []
1010
if not multiline:

pyqt_code_editor/worker/providers/codestral.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
client = None
66

77

8-
def codestral_complete(code: str, cursor_pos: int, path: str | None,
8+
def codestral_complete(code: str, cursor_pos: int,
99
multiline: bool = False) -> list[str]:
1010
global client
1111

pyqt_code_editor/worker/providers/symbol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import re
22

3-
def symbol_complete(code: str, cursor_pos: int, path: str | None) -> list[str]:
3+
def symbol_complete(code: str, cursor_pos: int) -> list[str]:
44
"""
55
A helper function for code completion that is based on all the symbols
66
that are detected in the code in a language-agnostic way. The code is split

0 commit comments

Comments
 (0)