We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1205101 commit 278584dCopy full SHA for 278584d
packages/core/src/codewhispererChat/controllers/chat/messenger/messenger.ts
@@ -91,8 +91,14 @@ export class Messenger {
91
)
92
93
}
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
+ */
100
public async countTotalNumberOfCodeBlocks(message: string): Promise<number> {
101
+ //TODO: remove this when moved to server-side.
102
if (message === undefined) {
103
return 0
104
0 commit comments