src/vs/workbench/contrib/snippets/browser/snippetsService.ts/SnippetsService/getSnippets
class SnippetsService:	async getSnippets(languageId: string, opts?: ISnippetGetOptions): Promise<Snippet[]> {
		await this._joinSnippets();

		const result: Snippet[] = [];
		const promises: Promise<any>[] = [];

		if (this._languageService.isRegisteredLanguageId(languageId)) {
			for (const file of this._files.values()) {
				promises.push(file.load()
					.then(file => file.select(languageId, result))
					.catch(err => this._logService.error(err, file.location.toString()))
				);
			}
		}
		await Promise.all(promises);
		return this._filterSnippets(result, opts);
	}