Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 authored Apr 25, 2024
1 parent 4ddcbbe commit aaf767a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/vs/workbench/services/language/common/languageService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit aaf767a

Please sign in to comment.