Pārlūkot izejas kodu

Rename run and stop icons to continue and terminate

Jeremy Tuloup 5 gadi atpakaļ
vecāks
revīzija
4c53e8a23d
2 mainītis faili ar 8 papildinājumiem un 5 dzēšanām
  1. 4 1
      src/icons.ts
  2. 4 4
      src/index.ts

+ 4 - 1
src/icons.ts

@@ -7,7 +7,10 @@ import stepOverSvgStr from '../style/icons/step-over.svg';
 import variableSvgStr from '../style/icons/variable.svg';
 import viewBreakpointSvgStr from '../style/icons/view-breakpoint.svg';
 
-export { runIcon, stopIcon } from '@jupyterlab/ui-components';
+export {
+  runIcon as continueIcon,
+  stopIcon as terminateIcon
+} from '@jupyterlab/ui-components';
 
 export const closeAllIcon = new LabIcon({
   name: 'debugger:close-all',

+ 4 - 4
src/index.ts

@@ -27,11 +27,11 @@ import { INotebookTracker, NotebookPanel } from '@jupyterlab/notebook';
 import { Session } from '@jupyterlab/services';
 
 import {
-  runIcon,
+  continueIcon,
   stepIntoIcon,
   stepOutIcon,
   stepOverIcon,
-  stopIcon
+  terminateIcon
 } from './icons';
 
 import { Debugger } from './debugger';
@@ -339,7 +339,7 @@ const main: JupyterFrontEndPlugin<IDebugger> = {
     commands.addCommand(CommandIDs.debugContinue, {
       label: 'Continue',
       caption: 'Continue',
-      icon: runIcon,
+      icon: continueIcon,
       isEnabled: () => {
         return service.hasStoppedThreads();
       },
@@ -352,7 +352,7 @@ const main: JupyterFrontEndPlugin<IDebugger> = {
     commands.addCommand(CommandIDs.terminate, {
       label: 'Terminate',
       caption: 'Terminate',
-      icon: stopIcon,
+      icon: terminateIcon,
       isEnabled: () => {
         return service.hasStoppedThreads();
       },