Skip to content

Commit

Permalink
Add view and catalog codicons
Browse files Browse the repository at this point in the history
  • Loading branch information
dfalbel committed Oct 16, 2024
1 parent c34d6c7 commit 19bed62
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
Binary file modified src/vs/base/browser/ui/codicons/codicon/codicon.ttf
Binary file not shown.
2 changes: 2 additions & 0 deletions src/vs/base/common/codiconsLibrary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -668,4 +668,6 @@ export const codiconsLibrary = {
positronNewConnection: register('positron-new-connection', 0xf286),
positronSchemaConnection: register('positron-schema-connection', 0xf287),
positronTableConnection: register('positron-table-connection', 0xf288),
positronCatalogConnection: register('positron-catalog-connection', 0xf289),
positronViewConnection: register('positron-view-connection', 0xf28a),
} as const;
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,15 @@ const PositronConnectionsItem = (props: React.PropsWithChildren<PositronConnecti
// types or provide their own icon.
switch (props.item.kind) {
case 'table':
case 'view':
return 'positron-table-connection';
case 'view':
return 'positron-view-connection';
case 'database':
return 'positron-database-connection';
case 'schema':
return 'positron-schema-connection';
case 'catalog':
return 'positron-catalog-connection';
case 'field':
switch (props.item.dtype) {
case 'character':
Expand All @@ -174,11 +181,6 @@ const PositronConnectionsItem = (props: React.PropsWithChildren<PositronConnecti
default:
return 'positron-data-type-unknown';
}
case 'database':
return 'positron-database-connection';
case 'schema':
case 'catalog':
return 'positron-schema-connection';
}
}
// If kind is not known, then no icon is dplsayed by default.
Expand Down

0 comments on commit 19bed62

Please sign in to comment.