File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff 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
5768class LspCodeMessage (LspMessage ):
5869 code : str = ""
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments