Skip to content

Commit 278584d

Browse files
committed
add comment
1 parent 1205101 commit 278584d

File tree

1 file changed

+7
-1
lines changed
  • packages/core/src/codewhispererChat/controllers/chat/messenger

1 file changed

+7
-1
lines changed

packages/core/src/codewhispererChat/controllers/chat/messenger/messenger.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,14 @@ export class Messenger {
9191
)
9292
)
9393
}
94-
94+
/**
95+
* Guesses the total number of code blocks.
96+
* NOTE: Not correct on all examples. Some may cause it to return 0 unexpectedly.
97+
* @param message raw message response from codewhisperer client.
98+
* @returns count of multi-line code blocks in response.
99+
*/
95100
public async countTotalNumberOfCodeBlocks(message: string): Promise<number> {
101+
//TODO: remove this when moved to server-side.
96102
if (message === undefined) {
97103
return 0
98104
}

0 commit comments

Comments
 (0)