Skip to content

Commit 81d7e5c

Browse files
committed
Return an empty array from getChildren when in no context mode
- in 'no context' mode, nothing should be shown in 'selected files' pane
1 parent 975a710 commit 81d7e5c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎apps/editor/src/context/providers/workspace/workspace-provider.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,10 @@ export class WorkspaceProvider
811811
await this.gitignore_initialization
812812
await this.ranges_initialization
813813

814+
if (this._is_no_context_mode) {
815+
return []
816+
}
817+
814818
if (element) {
815819
const dir_path = element.resourceUri.fsPath
816820
if (element.isDirectory) {

0 commit comments

Comments
 (0)