File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
server/aws-lsp-codewhisperer/src/language-server/agenticChat Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -413,7 +413,7 @@ export class AgenticChatController implements ChatHandlers {
413413
414414 const additionalContext = await this . #additionalContextProvider. getAdditionalContext (
415415 triggerContext ,
416- ( params . prompt as any ) . context
416+ params . context
417417 )
418418 if ( additionalContext . length ) {
419419 triggerContext . documentReference =
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ export class AgenticChatTriggerContext {
119119 }
120120
121121 if ( hasWorkspace ) {
122- promptContent = promptContent ?. replace ( / ^ @ w o r k s p a c e \/ ? / , '' )
122+ promptContent = promptContent ?. replace ( / \* \* @ w o r k s p a c e \* \* / , '' )
123123 }
124124
125125 // Get workspace documents if @workspace is used
@@ -161,8 +161,8 @@ export class AgenticChatTriggerContext {
161161 relativeFilePath : item . relativePath ,
162162 programmingLanguage : programmingLanguage ,
163163 type : filteredType ,
164- startLine : item . startLine || - 1 ,
165- endLine : item . endLine || - 1 ,
164+ startLine : item . startLine ?? - 1 ,
165+ endLine : item . endLine ?? - 1 ,
166166 }
167167 relevantDocuments . push ( relevantTextDocument )
168168 }
You can’t perform that action at this time.
0 commit comments