Ver código fonte

more cleanup

telamonian 5 anos atrás
pai
commit
cf81b23756

+ 2 - 4
packages/filebrowser/src/listing.ts

@@ -1770,7 +1770,7 @@ export namespace DirListing {
       if (fileType) {
         // add icon as svg node. Can be styled using CSS
         if (
-          this._iconRegistry.icon({
+          !this._iconRegistry.icon({
             name: fileType.iconClass,
             className: ITEM_ICON_CLASS,
             title: fileType.iconLabel,
@@ -1779,9 +1779,7 @@ export namespace DirListing {
             kind: 'listing'
           })
         ) {
-        }
-        // add icon as CSS background image. Can't be styled using CSS
-        else {
+          // add icon as CSS background image. Can't be styled using CSS
           icon.className = `${ITEM_ICON_CLASS} ${fileType.iconClass || ''}`;
           icon.textContent = fileType.iconLabel || '';
         }

+ 0 - 1
packages/running-extension/src/index.ts

@@ -33,7 +33,6 @@ function activate(
 ): void {
   let running = new RunningSessions({ manager: app.serviceManager });
   running.id = 'jp-running-sessions';
-  running.title.icon = 'running';
   running.title.iconClass = 'jp-RunningIcon jp-SideBar-tabIcon';
   running.title.caption = 'Running Terminals and Kernels';