Skip to content

Commit aaf767a

Browse files
authored
1 parent 4ddcbbe commit aaf767a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/vs/workbench/services/language/common/languageService.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,11 @@ class LanguageTableRenderer extends Disposable implements IExtensionFeatureTable
178178
localize('grammar', "Grammar"),
179179
localize('snippets', "Snippets")
180180
];
181-
const rows: IRowData[][] = languages.sort((a, b) => a.id.localeCompare(b.id))
181+
const rows: IRowData[][] = languages.sort((a, b) => (a.id || '').localeCompare(b.id || ''))
182182
.map(l => {
183183
return [
184-
l.id, l.name,
184+
l.id,
185+
l.name,
185186
new MarkdownString().appendMarkdown(`${l.extensions.map(e => `\`${e}\``).join(' ')}`),
186187
l.hasGrammar ? '✔︎' : '\u2014',
187188
l.hasSnippets ? '✔︎' : '\u2014'

0 commit comments

Comments
 (0)