Skip to content

Commit 3774f40

Browse files
authored
fix: accidental formatting #1410
1 parent 6d5a5cf commit 3774f40

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

server/aws-lsp-codewhisperer/src/language-server/agenticChat/agenticChatController.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1806,7 +1806,7 @@ export class AgenticChatController implements ChatHandlers {
18061806
updatedRequestInput.conversationState!.currentMessage!.userInputMessage!.content = content
18071807

18081808
for (const toolResult of toolResults) {
1809-
this.#debug(`ToolResult: ${JSON.stringify(toolResult)} `)
1809+
this.#debug(`ToolResult: ${JSON.stringify(toolResult)}`)
18101810
updatedRequestInput.conversationState!.currentMessage!.userInputMessage!.userInputMessageContext!.toolResults.push(
18111811
{
18121812
...toolResult,
@@ -1941,13 +1941,13 @@ export class AgenticChatController implements ChatHandlers {
19411941
}
19421942

19431943
if (authFollowType) {
1944-
this.#log(`Q auth error: ${getErrorMessage(err)} `)
1944+
this.#log(`Q auth error: ${getErrorMessage(err)}`)
19451945

19461946
return createAuthFollowUpResult(authFollowType)
19471947
}
19481948

19491949
if (customerFacingErrorCodes.includes(err.code)) {
1950-
this.#features.logging.error(`${loggingUtils.formatErr(err)} `)
1950+
this.#features.logging.error(`${loggingUtils.formatErr(err)}`)
19511951
if (err.code === 'InputTooLong') {
19521952
// Clear the chat history in the database for this tab
19531953
this.#chatHistoryDb.clearTab(tabId)
@@ -1964,10 +1964,10 @@ export class AgenticChatController implements ChatHandlers {
19641964
buttons: [],
19651965
})
19661966
}
1967-
this.#features.logging.error(`Unknown Error: ${loggingUtils.formatErr(err)} `)
1967+
this.#features.logging.error(`Unknown Error: ${loggingUtils.formatErr(err)}`)
19681968
return new ResponseError<ChatResult>(LSPErrorCodes.RequestFailed, err.message, {
19691969
type: 'answer',
1970-
body: requestID ? `${genericErrorMsg} \n\nRequest ID: ${requestID} ` : genericErrorMsg,
1970+
body: requestID ? `${genericErrorMsg} \n\nRequest ID: ${requestID}` : genericErrorMsg,
19711971
messageId: errorMessageId,
19721972
buttons: [],
19731973
})
@@ -2003,10 +2003,10 @@ export class AgenticChatController implements ChatHandlers {
20032003
this.#log('Response for inline chat', JSON.stringify(response.$metadata), JSON.stringify(response))
20042004
} catch (err) {
20052005
if (err instanceof AmazonQServicePendingSigninError || err instanceof AmazonQServicePendingProfileError) {
2006-
this.#log(`Q Inline Chat SSO Connection error: ${getErrorMessage(err)} `)
2006+
this.#log(`Q Inline Chat SSO Connection error: ${getErrorMessage(err)}`)
20072007
return new ResponseError<ChatResult>(LSPErrorCodes.RequestFailed, err.message)
20082008
}
2009-
this.#log(`Q api request error ${err instanceof Error ? JSON.stringify(err) : 'unknown'} `)
2009+
this.#log(`Q api request error ${err instanceof Error ? JSON.stringify(err) : 'unknown'}`)
20102010
return new ResponseError<ChatResult>(
20112011
LSPErrorCodes.RequestFailed,
20122012
err instanceof Error ? err.message : 'Unknown request error'
@@ -2052,7 +2052,7 @@ export class AgenticChatController implements ChatHandlers {
20522052
if (!params.code) missingParams.push('code')
20532053

20542054
this.#log(
2055-
`Q Chat server failed to insert code.Missing required parameters for insert code: ${missingParams.join(', ')} `
2055+
`Q Chat server failed to insert code.Missing required parameters for insert code: ${missingParams.join(', ')}`
20562056
)
20572057

20582058
return
@@ -2119,7 +2119,7 @@ export class AgenticChatController implements ChatHandlers {
21192119
this.#telemetryController.enqueueCodeDiffEntry({ ...params, code: textWithIndent })
21202120
} else {
21212121
this.#log(
2122-
`Q Chat server failed to insert code: ${applyResult.failureReason ?? 'No failure reason provided'} `
2122+
`Q Chat server failed to insert code: ${applyResult.failureReason ?? 'No failure reason provided'}`
21232123
)
21242124
}
21252125
}
@@ -2284,9 +2284,9 @@ export class AgenticChatController implements ChatHandlers {
22842284
return path.join(getUserPromptsDirectory(), relativePath)
22852285
}
22862286

2287-
this.#features.logging.error(`File not found: ${relativePath} `)
2287+
this.#features.logging.error(`File not found: ${relativePath}`)
22882288
} catch (e: any) {
2289-
this.#features.logging.error(`Error resolving absolute path: ${e.message} `)
2289+
this.#features.logging.error(`Error resolving absolute path: ${e.message}`)
22902290
}
22912291

22922292
return undefined

0 commit comments

Comments
 (0)