src/vs/workbench/contrib/files/browser/explorerService.ts/ExplorerService/getContext
class ExplorerService:	getContext(respectMultiSelection: boolean): ExplorerItem[] {
		if (!this.view) {
			return [];
		}

		const items = new Set<ExplorerItem>(this.view.getContext(respectMultiSelection));
		items.forEach(item => {
			if (respectMultiSelection && this.view?.isItemCollapsed(item) && item.nestedChildren) {
				for (const child of item.nestedChildren) {
					items.add(child);
				}
			}
		});

		return [...items];
	}