File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
codewhispererChat/controllers/chat Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -329,6 +329,7 @@ export class LspController {
329329 getLogger ( ) . info ( `LspController: Skipping building index. No projects found in workspace` )
330330 return
331331 }
332+ projPaths . sort ( )
332333 try {
333334 this . _isIndexingInProgress = true
334335 const projRoot = projPaths [ 0 ]
Original file line number Diff line number Diff line change @@ -917,10 +917,12 @@ export class ChatController {
917917 if ( contextCommands . length === 0 ) {
918918 return [ ]
919919 }
920- const workspaceFolder = vscode . workspace . workspaceFolders ?. [ 0 ] . uri ? .fsPath
921- if ( ! workspaceFolder ) {
920+ let workspaceFolders = ( vscode . workspace . workspaceFolders ?? [ ] ) . map ( ( folder ) => folder . uri . fsPath )
921+ if ( ! workspaceFolders ) {
922922 return [ ]
923923 }
924+ workspaceFolders . sort ( )
925+ let workspaceFolder = workspaceFolders [ 0 ]
924926 for ( const contextCommand of contextCommands ) {
925927 let relativePath = path . relative (
926928 workspaceFolder ,
You can’t perform that action at this time.
0 commit comments