File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
codewhispererChat/controllers/chat/chatRequest Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export function triggerPayloadToChatRequest(triggerPayload: TriggerPayload): { c
4444 if ( triggerPayload . filePath !== undefined && triggerPayload . filePath !== '' ) {
4545 const documentSymbolFqns : DocumentSymbol [ ] = [ ]
4646 if ( triggerPayload . codeQuery ?. fullyQualifiedNames ?. used ) {
47- for ( const fqn of triggerPayload . codeQuery ? .fullyQualifiedNames ? .used ) {
47+ for ( const fqn of triggerPayload . codeQuery . fullyQualifiedNames . used ) {
4848 const elem = {
4949 name : fqn . symbol ?. join ( '.' ) ?? '' ,
5050 type : SymbolType . USAGE ,
Original file line number Diff line number Diff line change @@ -209,8 +209,10 @@ export class GitExtension {
209209 public async getRemotes ( ) : Promise < GitTypes . Remote [ ] > {
210210 const api = await this . validateApi ( 'git: api is disabled, returning empty array of remotes' )
211211 const remotes : GitTypes . Remote [ ] = [ ]
212- for ( const repo of api ?. repositories ) {
213- remotes . push ( ...repo . state . remotes )
212+ if ( api ) {
213+ for ( const repo of api . repositories ) {
214+ remotes . push ( ...repo . state . remotes )
215+ }
214216 }
215217
216218 return remotes
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ export const crashMonitoringTest = async () => {
8686 // clean up all running instances
8787 if ( spawnedExtensions ) {
8888 for ( const e of spawnedExtensions ) {
89- e . crash ( )
89+ void e . crash ( )
9090 }
9191 }
9292 sandbox . restore ( )
You can’t perform that action at this time.
0 commit comments