From aaf767a660209a05e06ed1eed2f2ce57aeb760ef Mon Sep 17 00:00:00 2001 From: Sandeep Somavarapu Date: Thu, 25 Apr 2024 12:00:56 +0200 Subject: [PATCH] fix #210999 (#211326) --- src/vs/workbench/services/language/common/languageService.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/services/language/common/languageService.ts b/src/vs/workbench/services/language/common/languageService.ts index dd1a54c75eedb..730fbfcd79c07 100644 --- a/src/vs/workbench/services/language/common/languageService.ts +++ b/src/vs/workbench/services/language/common/languageService.ts @@ -178,10 +178,11 @@ class LanguageTableRenderer extends Disposable implements IExtensionFeatureTable localize('grammar', "Grammar"), localize('snippets', "Snippets") ]; - const rows: IRowData[][] = languages.sort((a, b) => a.id.localeCompare(b.id)) + const rows: IRowData[][] = languages.sort((a, b) => (a.id || '').localeCompare(b.id || '')) .map(l => { return [ - l.id, l.name, + l.id, + l.name, new MarkdownString().appendMarkdown(`${l.extensions.map(e => `\`${e}\``).join(' ')}`), l.hasGrammar ? '✔︎' : '\u2014', l.hasSnippets ? '✔︎' : '\u2014'