Skip to content

Commit e17d0f7

Browse files
authored
[fix] optimizable function response in lsp (codeflash-ai#528)
1 parent 181ec33 commit e17d0f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codeflash/lsp/beta.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def get_optimizable_functions(
5252
server.optimizer.args.previous_checkpoint_functions = False
5353

5454
server.show_message_log("Calling get_optimizable_functions...", "Info")
55-
optimizable_funcs, _ = server.optimizer.get_optimizable_functions()
55+
optimizable_funcs, _, _ = server.optimizer.get_optimizable_functions()
5656

5757
path_to_qualified_names = {}
5858
for path, functions in optimizable_funcs.items():
@@ -93,7 +93,7 @@ def initialize_function_optimization(
9393
f"Args set - function: {server.optimizer.args.function}, file: {server.optimizer.args.file}", "Info"
9494
)
9595

96-
optimizable_funcs, _ = server.optimizer.get_optimizable_functions()
96+
optimizable_funcs, _, _ = server.optimizer.get_optimizable_functions()
9797
if not optimizable_funcs:
9898
server.show_message_log(f"No optimizable functions found for {params.functionName}", "Warning")
9999
return {"functionName": params.functionName, "status": "not found", "args": None}

0 commit comments

Comments
 (0)