ソースを参照

Delay definition of the palette category

Jeremy Tuloup 5 年 前
コミット
a97816f011
1 ファイル変更1 行追加2 行削除
  1. 1 2
      src/index.ts

+ 1 - 2
src/index.ts

@@ -373,9 +373,8 @@ const main: JupyterFrontEndPlugin<IDebugger> = {
       }
     });
 
-    const category = 'Debugger';
-
     if (palette) {
+      const category = 'Debugger';
       palette.addItem({ command: CommandIDs.changeMode, category });
       palette.addItem({ command: CommandIDs.create, category });
       palette.addItem({ command: CommandIDs.start, category });