|
@@ -3,10 +3,6 @@
|
|
|
| Distributed under the terms of the Modified BSD License.
|
|
|
|----------------------------------------------------------------------------*/
|
|
|
|
|
|
-import {
|
|
|
- Token
|
|
|
-} from 'phosphor/lib/core/token';
|
|
|
-
|
|
|
import {
|
|
|
CommandPalette
|
|
|
} from 'phosphor/lib/ui/commandpalette';
|
|
@@ -15,30 +11,23 @@ import {
|
|
|
JupyterLab, JupyterLabPlugin
|
|
|
} from '../application';
|
|
|
|
|
|
+import {
|
|
|
+ ICommandPalette
|
|
|
+} from './';
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
-/**
|
|
|
- * The command palette token.
|
|
|
- */
|
|
|
-export
|
|
|
-const ICommandPalette = new Token<ICommandPalette>('jupyter.services.commandpalette');
|
|
|
-/* tslint:enable */
|
|
|
|
|
|
|
|
|
/**
|
|
|
* The default commmand palette extension.
|
|
|
*/
|
|
|
export
|
|
|
-const commandPaletteExtension: JupyterLabPlugin<ICommandPalette> = {
|
|
|
+const commandPaletteProvider: JupyterLabPlugin<ICommandPalette> = {
|
|
|
id: 'jupyter.services.commandpalette',
|
|
|
provides: ICommandPalette,
|
|
|
activate: activateCommandPalette,
|
|
|
autoStart: true
|
|
|
};
|
|
|
|
|
|
-export
|
|
|
-interface ICommandPalette extends CommandPalette {}
|
|
|
-
|
|
|
|
|
|
/**
|
|
|
* Activate the command palette.
|