Skip to content

Commit 231352f

Browse files
typo
1 parent 06de6d9 commit 231352f

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

codeflash/lsp/lsp_message.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,17 @@ def serialize(self) -> str:
5353
return super().serialize()
5454

5555

56+
# TODO: use it instead of the lspcodemessage to display multiple files in the same message
57+
class LspMultiCodeMessage(LspMessage):
58+
files: list[LspCodeMessage]
59+
60+
def type(self) -> str:
61+
return "code"
62+
63+
def serialize(self) -> str:
64+
return super().serialize()
65+
66+
5667
@dataclass
5768
class LspCodeMessage(LspMessage):
5869
code: str = ""

codeflash/result/explanation.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,11 @@ def __str__(self) -> str:
9797
+ self.raw_explanation_message
9898
+ " \n\n"
9999
+ (
100-
"The new optimized code was tested for correctness. The results are listed below.\n" + test_report_str
101-
if is_LSP_enabled()
102100
# in the lsp (extension) we display the test results before the optimization summary
103-
else ""
101+
""
102+
if is_LSP_enabled()
103+
else "The new optimized code was tested for correctness. The results are listed below.\n"
104+
+ test_report_str
104105
)
105106
)
106107

0 commit comments

Comments
 (0)